-
Notifications
You must be signed in to change notification settings - Fork 318
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
Include coarse woody debris (CWD) in heterotrophic respiration (HR) #1400
Conversation
Both test suites OK The scripts |
@ekluzek is suggesting running a test, baseline and new code, with the relevant history fields active. |
I ran a single test with the relevant history fields active. The test is successful (PASS). Here are some details: To generate a new baseline, I changed 8 lines with default I changed the same 8 lines in my branch, which resulted in an additional 8 history fields not found in my new baseline (otherwise bfb). The 8 fields are cwd-related as I would have expected:
@ekluzek was wondering whether we should keep the new fields (40 in total) as active from now on. This is a question for @wwieder . @wwieder I was also hoping you'd confirm whether my mods seem correct to you in this PR. |
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.
few comments related to N here, @slevisconsulting that we can discuss if it's helpful.
we need this on the PPE branch, which makes me wonder what changes need to be made to the parallel matrix code for respiration fluxes of CWD. @ekluzek can you advise
@@ -334,27 +334,25 @@ subroutine InitHistory(this, bounds) | |||
|
|||
do l = 1, ndecomp_cascade_transitions | |||
! vertically integrated fluxes | |||
!-- mineralization/immobilization fluxes (none from CWD) | |||
if ( .not. decomp_cascade_con%is_cwd(decomp_cascade_con%cascade_donor_pool(l)) ) then |
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.
I'm a little stuck wondering what we should do here... I wasn't imagining this flux would be associated with N mineralization or immobilization at this point. Maybe it should remain with the comment that there is none from CWD
@slevisconsulting I don't think we need these extra history fields turned on by default. We should check that that the simulations are bfb with |
@slevisconsulting yes, I agree with @wwieder they shouldn't be default on. But, I do wonder if they should be turned on for some of our testing. You can add them to hist_fincl1 to the user_nl_clm in one of the test mods. I'm thinking maybe it should go in the cropMonthOutput test mod as Crop can only be on if one of the BGC modes is on (otherwise test mods can be used for both SP or BGC). |
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.
is this ready to go @slevisconsulting if so, can @ekluzek take it to the PPE branch & main?
With my current mods (as they appear in the PR), the test is bfb with However, when I set
I have not looked into it, yet. Let me know if you have ideas. And @wwieder you mentioned something about the parallel matrix code. Any chance this error relates to your comment? |
@slevisconsulting and @wwieder don't worry about the parallel matrix code for now. That's the work on the PPE branch that we might need to provide for when it's moved over to there. Let's get this version working and onto master. When I move it to the PPE branch, I might need some help applying the same changes for the matrix, but possibly not. Also @slevisconsulting we should add a test mod for this test and add it to the testlist. We'll want to make sure this feature is working for future changes (and for example on the PPE branch). The testmod can point to the params file with the changes you had to make to test it out. |
sorry, bouncing between meetings w/o much time, but did we ever include CWD_HR in the balance check equation? Presumably this needs to be included in the heterotrophic respiration (HR) flux? |
This is what I'm finding. In fact there is no (I'm sorry if this was already known and I should have understood it when reading #1361 ) |
I will add |
To finish this work, I need to address @ekluzek 's recommendation:
|
one more naive question here @slevisconsulting are there any additional changes that need to be included for summing If so, let's see what @ekluzek says about testing. |
I discussed the new test with @ekluzek, and we converged on this new test (updated according to later post): @wwieder I haven't done anything with isotopes in this PR, so I will take a look. |
...oh, unless you mean C12 vs. C13 vs. C14. I did take care of those. |
@slevisconsulting if this effects C13 and C14, your test case likely should turn them on as well. There are some Carbon isotope test mods like "ciso", you might want to have your testmod inherit from it, and then keep ciso in the name. So something like ciso_cwd_hr... |
yes, let's make sure the carbon isotopes C13 & C14 tests pass as expected (and are tracking the CWD_HR). |
ERS_Ld3.f10_f10_mg37.I2000Clm51Bgc.cheyenne_intel.clm-ciso_cwd_hr where the new testmod ciso_cwd_hr adds to the ciso namelist two lines: hist_fincl1 = 'CWDC_HR','C13_CWDC_HR','C14_CWDC_HR','CWD_HR_L2','CWD_HR_L2_vr','CWD_HR_L3','CWD_HR_L3_vr' paramfile = '/glade/p/cesm/cseg/inputdata/lnd/clm2/paramdata/ctsm51_params.c210624.nc' where this params file changes the values of rf_cwdl*_bgc from 0 to 0.5
I ran the new test
I have run the cheyenne and izumi test-suites and they are OK. @wwieder @ekluzek |
no additional suggestions here. looks good to me! |
New stream functionality when using NUOPC or LILAC This tag creates new stream functionality when using the NUOPC and LILAC caps, and maintains backwards compatibility with the older CPL7 stream functionality when using the MCT cap. - New stream code has been placed in src/cpl/share_esmf (so that they can also be leveraged by LILAC) - Older stream code for mct is now in src/cpl/mct - LILAC interface has been changed to leverage the new stream code as well Where possible share code was used. In particular, this holds for SatellitePhenologyMod.F90. Resolved Conflicts: doc/ChangeLog doc/ChangeSum
Tests-suites OK. PR ready for merge.
…e null or none
Params file sets the respiration fractions for CWD to zero: rf_cwdl2_bgc = 0 rf_cwdl3_bgc = 0 The model has no code to handle rf_cwd* > 0. So... - I have introduced cwdhr_col to track this HR the same way that we track lithr_col for litter. - I have removed if-statements that prevented CWD HR pools and decomposition from writing to history. - I have introduced a new test to the cheyenne test-suite that makes active seven history fields pertaining to CWD HR and points to a params file with rf_cwd* > 0. I have confirmed that the new test returns the new active variables as greater than 0 when pointing to the new params file and equal to 0 when pointing to the default params file. NB: This branch and PR ESCOMP#1413 started from ESCOMP#1400 which already included almost all the code that would have otherwise come in with this merge. Resolved Conflicts: doc/ChangeLog doc/ChangeSum
Description of changes
Specific notes
Contributors other than yourself, if any:
@wwieder
@ekluzek
CTSM Issues Fixed (include github issue #):
Fixes #1361
Fixes #1417
Are answers expected to change (and if so in what way)?
Yes.
rf_cwdl*_bgc = 0
. They will be greater than zero and other history fields will change whenrf_cwdl*_bgc > 0
.Any User Interface Changes (namelist or namelist defaults changes)?
No
Testing performed, if any:
Running cheyenne test-suite. Not done but this far tests are passing.