Skip to content

Landuse history update superPR merge#1529

Closed
glemieux wants to merge 14 commits into
NGEET:mainfrom
glemieux:landuse-merge-1407-1485
Closed

Landuse history update superPR merge#1529
glemieux wants to merge 14 commits into
NGEET:mainfrom
glemieux:landuse-merge-1407-1485

Conversation

@glemieux
Copy link
Copy Markdown
Contributor

@glemieux glemieux commented Feb 5, 2026

Description:

This pull request merges #1407 and #1485 into a single pull request as both PRs cover similar conceptual ground, adding multiple new land use history variables.

Collaborators:

Expectation of Answer Changes:

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

  • The in-code documentation has been updated with descriptive comments
  • 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
  • FATES-CLM6 Code Freeze: satellite phenology regression tests are b4b

If satellite phenology regressions are not b4b, please hold merge and notify the FATES development team.

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:

@glemieux glemieux marked this pull request as draft February 5, 2026 07:00
@glemieux glemieux changed the title Landuse superPR merge Landuse history update superPR merge Feb 5, 2026
@glemieux
Copy link
Copy Markdown
Contributor Author

glemieux commented Feb 5, 2026

Regression testing is underway on derecho

@glemieux glemieux marked this pull request as ready for review February 5, 2026 07:06
if (((ccohort%c_area + crown_area_covered)/cpatch%area) .ge. 0.05_r8 ) then
hio_patch_weighted_95thpctile_height_si(io_si) = &
hio_patch_weighted_95thpctile_height_si(io_si) + ccohort%height * cpatch%area/AREA
ccohort => null() ! exit the cohort loop
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is an interesting way to break out of a linked list loop. Have we used this type of operation before? Seems like a good way to do it.

! ===============================================================================================


subroutine update_history_hifrq_landuse(this,nc,nsites,sites,bc_in,dt_tstep)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love the use of a new routine here


cpatch => sites(s)%oldest_patch
do while(associated(cpatch))
if (cpatch%total_canopy_area .gt. rsnbl_math_prec) then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this compared against the math precision value? It is being mulitplied, so zero should be fine in this case. Is this to differentiate between an initialized and non-initialized value?

Shouldn't we be filering for canopy_area_bylanduse(...) > 0?

@glemieux
Copy link
Copy Markdown
Contributor Author

Closing this PR as I realized that it's mixing two fates PR, one of which needs to be coordinated with the HLM update. #1485 does not need to be coordinated and will be brought in on it's own.

@glemieux glemieux deleted the landuse-merge-1407-1485 branch April 8, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants