Fix the FUN bug, where an if statement was backwards... #727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apply the difference from the olyson/delta_CN_FUNbug off of release-clm5.0.15 to ctsm/master.
Description of changes
Technical notes: Page 167
The bug in the FUN model source code is that the functions corresponding
to these two conditions relevant to deltaCN are placed in a wrong order. So
under the deltaCN > 0 condition, it actually uses the function for deltaCN <
0.
Clm5.0/src/biogeochem/CNFUNMod.F90
Original code
Specific notes
Contributors other than yourself, if any: @olyson, @rosiealice, Yanyan Cheng, Maoiyi Huang
CTSM Issues Fixed (include github issue #): #704
Fixes #704 -- FUN bug
Are answers expected to change (and if so in what way)? yes (when FUN is on, so Clm50Bgc)
Any User Interface Changes (namelist or namelist defaults changes)? None
Testing performed, if any: regular testing being done
We've completed 40 year global 1850 runs (after AD and post-AD spinup) for a control and with the bug fix (on release-clm5.0.15). Diagnostics are here:
http://webext.cgd.ucar.edu/I1850/clm50_release-clm5.0.15_delta_CN_FUNbug_2deg_GSWP3V1_1850/lnd/clm50_release-clm5.0.15_delta_CN_FUNbug_2deg_GSWP3V1_1850.21_40-clm50_release-clm5.0.15_2deg_GSWP3V1_1850.21_40/setsIndex.html
We've also completed a historical run. Diagnostics are here:
http://webext.cgd.ucar.edu/I20TR/clm50_release-clm5.0.15_delta_CN_FUNbug_2deg_GSWP3V1_hist/lnd/clm50_release-clm5.0.15_delta_CN_FUNbug_2deg_GSWP3V1_hist.1995_2014-clm50_release-clm5.0.15_2deg_GSWP3V1_hist.1995_2014/setsIndex.html
Our assessment is that the impact is relatively small, but would affect climate; however it doesn’t appear to strongly affect transient C response.