-
Notifications
You must be signed in to change notification settings - Fork 92
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
Satellite phenology mode fixes for the gnu compiler #838
Conversation
All expected tests PASS b4b against the baseline. Test folder location: |
I'm running a last check on Cori using a version of this PR branch that is compatible with the current ELM-FATES API: https://github.com/glemieux/fates/commits/spmode-gnufix. |
For some reason this failed on Cori. Final regression testing is on hold until I figure out what happened. |
Ok, I think I see what the issue is here. There is another initialization issue: we're calling I'm going to tag this as "Not Ready" and move it down the project board while I work on this. |
After reviewing options for refactoring the code and talking with @ckoven, I've moved ahead with implementing the simple immediate fix of assigning the |
Tests OK: |
With the change from 5d40c3e the |
Description:
This fixes #832 by explicitly setting the cohort canopy layer to one when initializing cohorts during satellite phenology (SP) mode. In the course of correcting this issue it was also discovered that the SP mode was failing the exact restart test (ERS) due to
FATES_FDI
not being initialized (even though we force spitfire to be off during the SP runs). This history variable output is the only fire output that is a direct assignment, which is why I think it might not have been showing up for non-fire gnu compiler ERS runs. Setting the site-levelfdi
equal to zero in thezero_site
subroutine corrects this issue.I also realized that we don't specifically care about the
hlm_is_restart
inUpdateCohortBioPhysRates
. We can just check if we are in SP mode.Collaborators:
@peterdschwartz
Expectation of Answer Changes:
This should be b4b against the baseline except for the SatPhen testmod.
Checklist:
Test Results:
The ERS gnu compiler test is not standard on Cheyenne or Cori, but I tested it for completeness sake:
/glade/u/home/glemieux/scratch/ctsm-tests/tests_spmode-gnufail-gnuzero
CTSM (or) E3SM (specify which) test hash-tag: ESCOMP/CTSM@bcb9735
CTSM (or) E3SM (specify which) baseline hash-tag: ESCOMP/CTSM@bcb9735
FATES baseline hash-tag: 477a8d5
Test Output:
/glade/u/home/glemieux/scratch/ctsm-tests/tests_pr838-gnu_spmode_fix