-
Notifications
You must be signed in to change notification settings - Fork 91
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
state_vector
is NaN
when land use is off
#1221
Comments
This was referenced Jul 15, 2024
4 tasks
I should note that the failing test cases on perlmutter are The same issue presented itself on izumi via |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
API testing with e3sm_landuse_develop suite for E3SM-Project/E3SM#6353 exposed an issue in which
state_vector
is being referenced without being defined whenuse_fates_luh
is.false.
:fates/biogeochem/EDPatchDynamicsMod.F90
Lines 472 to 474 in fd7f343
The
state_vector
is set upstream in the same subroutine only whenuse_fates_luh
is true:fates/biogeochem/EDPatchDynamicsMod.F90
Lines 324 to 328 in fd7f343
@ckoven for non land use mode run cases, I figured we could simply make sure that
state_vector = current_fates_landuse_state_vector
based on the very first call at the start of thedisturbance_rates
subroutine:fates/biogeochem/EDPatchDynamicsMod.F90
Lines 225 to 226 in fd7f343
This results in the test passing, but I wanted to double check my logic first.
There is one other case that follows this pattern in
LoggingMortality_frac
:fates/biogeochem/EDLoggingMortalityMod.F90
Lines 263 to 267 in fd7f343
where
state_vector
is only used in that subroutine behind a check onsite_secondaryland_first_exceeding_min
which should always be false for non land use mode per the current logic seen above.The text was updated successfully, but these errors were encountered: