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

Add calculation of FATES_SAPFLOW to history interface, add sapwood area as history variable #1309

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

jennykowalcz
Copy link

This PR addresses issue 1266. It adds a calculation of FATES_SAPFLOW to the history interface code, and adds sapwood area as a history variable so that the user can normalize sapflow by sapwood area to compare to observed values.

(Note, in looking at sapwood area, I discovered, but have not addressed here, that sapwood area is sometimes greater than basal area for shrubs -- discussion 1307.)

Collaborators:

@ckoven @mpaiao @JessicaNeedham @samsrabin helped identify what needed to be done to fix the issue.

Expectation of Answer Changes:

This will change FATES_SAPFLOW, which was previous erroneously zero.

Checklist

If this is your first time contributing, please read the CONTRIBUTING document.

All checklist items must be checked to enable merging this pull request:

Contributor

  • [ x] The in-code documentation has been updated with descriptive comments
  • [ x] The documentation has been assessed to determine if updates are necessary

Integrator

  • FATES PASS/FAIL regression tests were run
  • Evaluation of test results for answer changes was performed and results provided

Documentation

Test Results:

CTSM (or) E3SM (specify which) test hash-tag:

CTSM (or) E3SM (specify which) baseline hash-tag:

FATES baseline hash-tag:

Test Output:

@jennykowalcz jennykowalcz changed the title Add add calculation of FATES_SAPFLOW to history interface, add sapwood area as history variable Add calculation of FATES_SAPFLOW to history interface, add sapwood area as history variable Jan 13, 2025
@jennykowalcz jennykowalcz added the history output Pertaining to FATES history output variables label Jan 13, 2025
@@ -3751,6 +3756,13 @@ subroutine update_history_dyn2(this,nc,nsites,sites,bc_in)
hio_ddbh_si_scpf(io_si,scpf) = hio_ddbh_si_scpf(io_si,scpf) + &
ccohort%ddbhdt*ccohort%n / m2_per_ha * m_per_cm

Copy link
Contributor

Choose a reason for hiding this comment

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

update_history_dyn2 is a good spot for this diagnostic

@jennykowalcz jennykowalcz linked an issue Jan 14, 2025 that may be closed by this pull request
@rgknox rgknox merged commit f459810 into NGEET:main Jan 15, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
history output Pertaining to FATES history output variables
Projects
Development

Successfully merging this pull request may close these issues.

sapflow bug?
2 participants