-
Notifications
You must be signed in to change notification settings - Fork 313
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
Transient pft issue #538 #540
Conversation
Fix associated with issue ESCOMP#538. Minor code mods that allow %cft to advance beyond 1850 in transient pft simulations.
@slevisconsulting thanks a lot for this. So am I understanding right that your collapse2gencrop branch is now bit-for-bit with this one, for all tests (other than the one test that needs baselines generated for it)? If so, I'd say we should move ahead with getting this fix onto master (after doing hobart testing, which it sounds like you haven't yet done). @ekluzek do you agree? |
Bill, yes, that's right. I have a busy few days, but I will try to run hobart testing by Saturday evening. Will let you know. |
@slevisconsulting - I don't mind if you leave final testing up to @ekluzek or me. I'm about to suggest some additional changes to this branch, so given your time constraints it might make sense for one of us to take over final testing of this branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we're likely to bring this to the release branch without the follow-up changes in #483 , I'm going to be a little more picky here. Specifically: It seems misleading if do_transient_crops is still present in the namelist but isn't actually used in the code. I'm wondering if it would be possible to change the default logic for do_transient_crops (in CLMBuildNamelist.pl) to achieve a similar result. (I haven't looked closely at this logic to determine this.)
Before I respond, here's progress on hobart standard testing (now complete): First 3 tests are with the intermediate fix: Next 3 tests compare the collapse2gencrop branch with the intermediate fix: |
I'm ok with changing the logic in CLMBuildNamelist.pm. As far as I can tell it's a one-line change. I will commit, push, and you can conduct the testing. |
Changing the default logic in CLMBuildNamelist.pm instead of hardwiring do_transient_crops to always equal do_transient_pfts in the code. This fix as is may be incomplete. It allows do_transient_crops = .true. when use_crop = .false. but it does not make sure do_transient_crops = do _transient_pfts.
@billsacks, pls read the message in this last commit. I am not sure that the change I made in CLMBuildNamelist.pm is sufficient. I also do not feel comfortable programming in (is it) perl. I would like you to add a clause that makes sure do_transient_crops = do_transient_pft and I will be interested in seeing how you did it for future reference. |
Thanks, @slevisconsulting , both for the testing and for the alternative change. I'd like to defer to @ekluzek to give this a more careful look/think, because he's the most familiar with the ins and outs of the namelist logic. |
I'm tentatively approving these changes, though would like to defer to @ekluzek , and then we should redo testing, ideally comparing against the test suite results from @slevisconsulting 's latest runs. (We can generate baselines after-the-fact from those runs if he didn't already do so.) |
For my baselines, look here I named the intermediate fix "13" and the collapse branch "14" |
Thanks, @slevisconsulting ! |
…_transient consistency, grainproduct, and create_crop_landunit
I pushed some changes, and now I'm testing and verifying answers are the same as @slevisconsulting case. |
Testing shows my changes are bit-for-bit with @slevisconsulting, and only expected fails. So this looks good to go! |
Testing is showing differences to baseline only as expected: (Hist SP or Bgc cases only Clm45/Clm50) ../Tools/compare_test_results -r . -t ctsm1d13naga -b ctsm1.0.dev012 | grep BASELINE | grep Hist @danicalombardozzi simulation that is showing correct results is: dll/clm50_r267_1deg_GSWP3V1_iso_hist_nocrop_transientfix |
I see a message here that "the slevisconsulting:trans_pft_issue538 branch can be safely deleted." Do you guys recommend that I delete it or do you keep branches around? Similar question about issue 538: should one of us hit the "close" button? |
@slevisconsulting - I delete my branches as soon as they're merged. It's safe to do that because the full history of the branch is still maintained in git. Thanks for pointing out that #538 wasn't closed. I just went ahead and closed it. For future reference, if you write something like "Fixes #538" in your initial PR comment, it will auto-close when the PR is merged. (There are certain special keywords that cause an issue to auto-close when a PR is merged or a commit comes to master: https://help.github.com/articles/closing-issues-using-keywords/.) |
Transient pft issue ESCOMP#538
Description of changes
Corrects the baseline for transient crops in transient pft runs
Specific notes
Contributors other than yourself, if any:
CTSM Issues Fixed (include github issue #):
#538
Are answers expected to change (and if so in what way)?
Yes, in transient pft runs
Any User Interface Changes (namelist or namelist defaults changes)?
Testing performed, if any:
Ran standard intel & gnu test-suites to generate baseline-13 from branch trans_pft_issue538 while comparing to baseline-12. Expect same or similar FAILures as between branch collapse2gencrop & baseline-12:
Gnu generated same DIFF FAILures + 2 new TPUTCOMP FAILures
Intel generated same DIFF FAILures, except 1 new RUN FAILure: corrected, retested, and now it’s among same DIFF FAILures
Ran same tests bet. branch collapse2gencrop & baseline-13 hoping for no FAILures:
nohup qcmd -l walltime=06:00:00 -- ./create_test --xml-category aux_clm --xml-machine cheyenne --xml-compiler gnu -r /glade/scratch/slevis/collapse_pfts_cheyenne_gnu --project P93300641 --compare /glade/scratch/slevis/cesm_baselines/ctsm1.0.dev013 --generate /glade/scratch/slevis/cesm_baselines/ctsm1.0.dev014 &
The expected FAILs
nohup qcmd -l walltime=12:00:00 -- ./create_test --xml-category aux_clm --xml-machine cheyenne --xml-compiler intel -r /glade/scratch/slevis/collapse_pfts_cheyenne_intel --project P93300641 --compare /glade/scratch/slevis/cesm_baselines/ctsm1.0.dev013 --generate /glade/scratch/slevis/cesm_baselines/ctsm1.0.dev014 &
The expected FAILs except the test that FAILed 2 steps up and I corrected but didn’t “generate” files when I corrected it… Still need to do this!