Skip to content

eCLM-ParFlow: Normalize ParFlow source term over the gridcell - #132

Draft
s-poll wants to merge 1 commit into
masterfrom
dev-eclm-parflow-c2g
Draft

eCLM-ParFlow: Normalize ParFlow source term over the gridcell#132
s-poll wants to merge 1 commit into
masterfrom
dev-eclm-parflow-c2g

Conversation

@s-poll

@s-poll s-poll commented Sep 1, 2026

Copy link
Copy Markdown
Member

Fixes #131.

Summary

qflx_parflow_col is left at spval on every column that ParFlowDrainage does not assign, e.g. lake, glacier, wetland and the non-pervious urban types. c2g excludes those from its denominator as well as its numerator, so that the flux handed to ParFlow was the mean over the hydrologically active fraction while ParFlow applies it over the whole cell. Zeroing the array before the assignment loops makes the non-contributing columns count as explicit zeros, restoring full-gridcell normalization and making the spval to 0 workaround in lnd2atmMod unnecessary.

Details

See #131 for details

Side effects

QPARFLOW history output reports 0 rather than the fill value on non-contributing columns, since the array is now zeroed every timestep rather than left at its initial spval value.

- qflx_parflow_col stayed spval on lake, glacier, wetland and non-pervious urban columns, so that the flux was the mean over the hydrologically active fraction while ParFlow applies it over the whole cell
- zero qflx_parflow_col on all columns before the assignment loops, so that sumwt reaches 1
- drop the spvalto 0 loop after c2g, unreachable once nothing is spval
- see details in #131
@s-poll s-poll added the coupled-parflow Issues related to eCLM-ParFlow coupling label Sep 1, 2026
@kvrigor

kvrigor commented Sep 2, 2026

Copy link
Copy Markdown
Member

CI failure is due to silent failures in installing apt packages, which is then caused by an unresponsive Ubuntu package server:

Screenshot from 2026-09-02 07-35-59

This issue has been recently reported in awalsh128/cache-apt-pkgs-action#221 ; let's wait for the maintainer to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coupled-parflow Issues related to eCLM-ParFlow coupling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eCLM-ParFlow: ParFlow source term overestimated by wrong c2g normalization

2 participants