test(hydraulics): add shared PRT, PFT, and site/cohort mock test infrastructure - #1599
Open
johnpaulalex wants to merge 3 commits into
Open
test(hydraulics): add shared PRT, PFT, and site/cohort mock test infrastructure#1599johnpaulalex wants to merge 3 commits into
johnpaulalex wants to merge 3 commits into
Conversation
johnpaulalex
force-pushed
the
test/hydr-base
branch
from
August 8, 2026 02:31
3cc77e1 to
943089c
Compare
johnpaulalex
force-pushed
the
test/hydr-base
branch
from
August 12, 2026 01:37
943089c to
e6a57b5
Compare
johnpaulalex
force-pushed
the
test/hydr-base
branch
from
August 12, 2026 01:40
e6a57b5 to
bdaa2b9
Compare
johnpaulalex
force-pushed
the
test/hydr-base
branch
from
August 19, 2026 02:41
17f8512 to
19ee368
Compare
johnpaulalex
marked this pull request as ready for review
August 19, 2026 12:16
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description:
This PR adds
FatesUnitTestPRTParametersMod.F90andEDPftvarconMockMod.F90undertesting/tests/fortran_shr/as reusable test helper modules for plant hydraulics and soil unit test suites.It provides parameter initialization, physical constant sourcing with SI units (
[g/cm3],[m2/g C],[1/m],[cm]), and explicit allocation/teardown support (cleanup_mock_prt_params()) to ensure clean state restoration in pFUnitsetUp()andtearDown()blocks.Preview of Child Branches
test/hydr-bstress+hydr-base: Adds pFUnit test suite (test_FatesBstress.pf) forFatesBstressModto test plant water stress factors.test/hydr-btran+hydr-base: Adds pFUnit test suite (test_EDBtran.pf) forEDBtranModto test transpiration beta factor calculations.test/hydr-plant+hydr-base: Adds pFUnit test suites (cohort,drive,geom,init,sizedep) forFatesPlantHydraulicsModalongsideEDTypesMockMod.F90.test/hydr-plant-explicit+hydr-base: Implements explicit plant hydraulics solver unit tests forFatesPlantHydraulicsMod.test/matsolve2d-explicit+hydr-base: Implements explicit 2D matrix solver (MatSolve2D) and layer integration unit tests.fix/sum-btwn-depths+hydr-plant: FixesSumBetweenDepthssoil layer integration logic inFatesPlantHydraulicsMod.F90and adds pFUnit verification tests.Specific notes
Collaborators:
Linked issues addressed, if any:
Expectation of Answer Changes:
Description of generative AI usage (as necessary)
Google Antigravity was used to write the code and tests, followed by human-guided verification.
Checklist
Contributor
Integrator
Test Results:
CTSM (or) E3SM (specify which) test hash-tag: N/A
CTSM (or) E3SM (specify which) baseline hash-tag:
5efa6fbfFATES baseline hash-tag:
bdaa2b99Test Output:
[x] Executed pFUnit / CIME regression tests