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

Enforce CLM balance checks w/ DART #674

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

braczka
Copy link
Contributor

@braczka braczka commented May 2, 2024

Description:

The CLM Sourcecode (ctsm_cesm2.2.03 run on Derecho), nor the current CLM-DART SourceMods allow for the CLM balance checks to be turned on after the DA time step. Balance checks are skipped for the entire simulation, which could mask important issues like model stability.

Fixes issue

Fixes issue #671

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

No Doc changes needed. This is a capability that should have already been working, but apparently broke when updating the ctsm version to work with Derecho.

Tests

Ran the CLM-DART tutorial, and included print statements to confirm balance checks were being enforced after 1st time step after restart.

Checklist for merging

  • Updated changelog entry
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

CNVegetationFacade.f90 not allowing for the
C and N balance checks to be called.  Force
the call and allow CNBalanceCheckMod to decide
whether to skip or not.
BalanceCheckMod was not functional using DA_nstep
Replace with is_first_restart_step
@braczka braczka added CLM Community Land Model SourceMods code used to modify CESM labels May 2, 2024
@braczka braczka self-assigned this May 2, 2024
@braczka
Copy link
Contributor Author

braczka commented May 2, 2024

Because these are SourceMod changes the file changes as part of this PR look huge because in some cases an entire file needs to be added. However actual changes compared to Source code are quite small. To look at differences compare with CLM Source Code version ctsm_cesm2.2.03. For example:
/glade/work/bmraczka/ctsm_cesm2.2.03/

@braczka
Copy link
Contributor Author

braczka commented May 2, 2024

I would like to increase the capability of the SourceMod to allow the user to modify the number of steps to skip after DA. Currently it is fixed at 1 skipped time step for all balance checks including carbon, nitrogen, snow, water, radiation etc. Some users have found it convenient to skip multiple time steps (e.g. soil moisture DA).

@braczka
Copy link
Contributor Author

braczka commented May 5, 2024

Also posted issue in CTSM github ESCOMP/CTSM#2525 to make them aware of bug for future releases, and also look for an easy, alternative fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLM Community Land Model SourceMods code used to modify CESM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant