Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure consistency in use of nSnow and nSoil #52

Merged
merged 2 commits into from
May 21, 2015
Merged

ensure consistency in use of nSnow and nSoil #52

merged 2 commits into from
May 21, 2015

Conversation

martynpclark
Copy link
Collaborator

Cleaned up nSnow and nSoil to ensure consistency and avoid re-computing the number of snow and soil layers when not needed.

We do still re-compute nSnow and nSoil in layer_merge.f90 and layerDivide.f90 -- this is necessary because the number of layers changes.

As a safety check we re-compute nSnow and nSoil in coupled_em.f90 -- this should not increase the computational burden substantially since the operations occur outside the main solver.

Importantly, the main process routines:
snowLiqFlx
soilLiqFlx
ssdNrgFlx
vegNrgFlx
vegSWrad
all share nSnow and nSoil through the data structure.

martynpclark added a commit that referenced this pull request May 21, 2015
ensure consistency in use of nSnow and nSoil
@martynpclark martynpclark merged commit e68680a into CH-Earth:develop May 21, 2015
wknoben pushed a commit that referenced this pull request Nov 17, 2024
Resolving segmentation errors for gcc-13+ builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant