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

Hillslope hydrology pre-merge changes #9

Merged

Conversation

samsrabin
Copy link

@samsrabin samsrabin commented Jan 26, 2024

Description of changes

@swensosc, this PR contains all the changes I'm requesting before we bring hillslopes into the master CTSM branch (ESCOMP#1715). It's a work in progress for now, but should be ready soon. Let me know if you'd like me to walk you through my changes.

Major

  • Update to ctsm5.1.dev164
  • Functionize and unit-test Linear hillslope_pft_distribution_method (fd5ed37)
  • Use collapse_to_dominant() for Uniform and DominantPftLowland hillslope_pft_distribution_method, extending it to allow only some gridcells to get collapsed (02d2cf7)

Minor

  • Add Hillslope testmods
  • Add Hillslope tests to aux_clm and new hillslope test suite (ed5e0ae)
  • Remove a redundant check in CLMBuildNamelist.pm (bd4a04e)
  • Do not allow use_hillslope with transient land cover change (79141f8)
  • Fix logic for missing h_bedrock error check (b1433a0)

Trivial

  • Remove some commented-out code
  • Miscellaneous whitespace and style improvements

Specific notes

Contributors other than yourself, if any: None

Are answers expected to change (and if so in what way)? Yes, but only roundoff-level, and only with some options.

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

Testing performed, if any:

  • Functionizing HillslopeSoilThicknessProfile_linear() caused no diffs
  • Using collapse_to_dominant for pft_uniform_dominant_pft and pft_lowland_dominant_pft caused only roundoff-level diffs
  • New testmods (and tests added to CLM test suites) work.

samsrabin added 30 commits July 14, 2023 15:06
This necessitates nyrs_crop_active being changed from integer to real(r8).
Still won't work with use_crop false. FATES handles coarse woody debris separately, but I haven't added handling of that, so implicitly tillage just doesn't affect CWD.
Multiple active crop patches per column shouldn't be possible YET, but perhaps eventually it will be.
This ensures that any methods added in the future are handled here.
This logical array, where .true. will prevent individual gridcells from being collapsed. Includes unit testing.
For the Uniform and DominantPftLowland values of hillslope_pft_distribution_method
Squash-"merge" of hillslope_hydrology-functionize_linear into hillslope_hydrology-ssr3
@samsrabin samsrabin changed the title Hillslope hydrology ssr4 Hillslope hydrology pre-merge changes Jan 26, 2024
@samsrabin samsrabin marked this pull request as ready for review January 29, 2024 20:55
@samsrabin
Copy link
Author

@swensosc This is ready for your review! Let me know if you want to walk through it together.

@swensosc swensosc merged commit 220f314 into swensosc:hillslope_hydrology Feb 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants