Skip to content
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

Nutrient enabled FATES API #1148

Merged
merged 11 commits into from
Sep 25, 2020
Merged

Conversation

rgknox
Copy link
Collaborator

@rgknox rgknox commented Sep 12, 2020

Description of changes

This enables API compliance with changes to FATES that enable nutrient dynamics. This code does not fully couple nutrients between the plants and soil. This API update will however allow for simulations and tests with prescribed nutrient uptake by plants.

Specific notes

Synchronized with FATES PR: NGEET/fates#598

FATES does now have a test mode that runs with C+N+P. However, this uses prescribed uptake rates on fates and breaks mass coupling with CTSM. This is our only option until we have a full nutrient model enabled.

Contributors other than yourself, if any: @ckoven @rosiealice @qzhu-lbl many others

CTSM Issues Fixed (include github issue #):

Are answers expected to change (and if so in what way)?

yes, answers will change. Enough code is changed that I do expect round-off errors and non-b4b results, but the carbon-only version of FATES-CLM should produce indistinguishable results from a base.

Any User Interface Changes (namelist or namelist defaults changes)?

yes, a new FATES default parameter file will be generated. Pending discussion, the format of the file may or may not change.

Testing performed, if any:

TBD

(List what testing you did to show your changes worked as expected)
(This can be manual testing or running of the different test suites)
(Documentation on system testing is here: https://github.com/ESCOMP/ctsm/wiki/System-Testing-Guide)
(aux_clm on cheyenne for intel/gnu and izumi for intel/gnu/nag/pgi is the standard for tags on master)

NOTE: Be sure to check your coding style against the standard
(https://github.com/ESCOMP/ctsm/wiki/CTSM-coding-guidelines) and review
the list of common problems to watch out for
(https://github.com/ESCOMP/CTSM/wiki/List-of-common-problems).

@rgknox rgknox added FATES API update Changes to the FATES version that also REQUIRE an API change in CTSM PR status: work in progress and removed PR status: work in progress labels Sep 12, 2020
…s and FATES specific soil BGC calls. This allows for processing of high frequency history diagnostics before calls to fates dynamics, which will cause havoc on cohorts and their subsequent creation/dissapearance.
…a testmod dir that activates its namelist entry
Copy link
Collaborator

@glemieux glemieux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple minor typos and a couple questions.

end if ! use_fates branch


if ( use_fates ) then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an empty if ... end if logic set here. I'm guessing it was old code that just got missed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, good catch, I can remove this

@@ -874,7 +909,7 @@ subroutine dynamics_driv(this, nc, bounds_clump, &

! ---------------------------------------------------------------------------------
! Part III.2 (continued).
! Update diagnostics of the FATES ecosystem structure that are used in the HLM.
! Update UpdateLdiagnostics of the FATES ecosystem structure that are used in the HLM.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo

@glemieux glemieux merged commit c724747 into ESCOMP:fates_main_api Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FATES API update Changes to the FATES version that also REQUIRE an API change in CTSM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants