Skip to content

ctsm5.3.045: Initializing itype as spval for fates patches #2935

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rgknox
Copy link
Collaborator

@rgknox rgknox commented Jan 15, 2025

Description of changes

On FATES patches, there should be no notion of pft associated with the patch, and therefore patch%itype should always be invalid. Even for FATES-SP, the patch should be associated with the FATES pft, which is not associated with itype. In this set of changes, itype is set to spval on fates patches. This will help prevent bugs in the future, because its use in a fates context should trigger errors, particularly in debug mode.

Specific notes

Addresses part of: #2932

Contributors other than yourself, if any:

@rosiealice @ekluzek @glemieux others

CTSM Issues Fixed (include github issue #):

Fixes: #2933

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

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

Does this create a need to change or add documentation? Did you do so? No

Testing performed, if any:

One off tests to see if the model would run with Zeng and Wang turbulent transport. It does. Ran into machine issues testing with Meier2022, which should crash.

@rgknox
Copy link
Collaborator Author

rgknox commented Jan 15, 2025

combine this with #2934 ?

@ekluzek
Copy link
Collaborator

ekluzek commented Jan 15, 2025

@rgknox I suggest you leave this outside of #2934 for now. I'm wondering what will happen with this when the fates and aux_clm test lists are run. I'm curious if you'll see new issues when you run DEBUG level tests with FATES. If so I'm thinking it might be a bit to resolve. But, I might be wrong...

@ekluzek ekluzek added this to the CESM3 Answer changing freeze milestone Jan 15, 2025
@ekluzek ekluzek added enhancement new capability or improved behavior of existing capability FATES A change needed for FATES that doesn't require a FATES API update. bfb bit-for-bit PR status: needs testing labels Jan 15, 2025
@rosiealice
Copy link
Contributor

Good idea @rgknox :) I hope @ekluzek is not right about needing to fix lots of things but maybe we should keep them separate just incase :/

Copy link
Collaborator

@ekluzek ekluzek left a comment

Choose a reason for hiding this comment

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

Awesome, to see a start at this so quickly. And for it to already have caught something. Things were being set and then overridden by FATES, so it won't change answers, but it's good to know that the change caught that.

I'm just requesting adding some comments to describe what's going on and why.

@github-project-automation github-project-automation bot moved this to Ready to start (or start again) in CTSM: Upcoming tags Apr 3, 2025
@wwieder wwieder moved this from Ready to start (or start again) to In progress - master/b4b-dev in CTSM: Upcoming tags Apr 3, 2025
@rgknox rgknox moved this from Stuck to Under Review in FATES Pull Request Planning and Status May 5, 2025
@ekluzek
Copy link
Collaborator

ekluzek commented May 12, 2025

@rgknox this looks to me like it could come in right now. As next in line.

We plan to have @slevis-lmwg do the integrator step from..

https://github.com/ESCOMP/CTSM/wiki/Protocols-on-updating-FATES-within-CTSM#ctsmfates-developer

@rgknox
Copy link
Collaborator Author

rgknox commented May 12, 2025

That works for me @ekluzek , I believe it is feature complete. I'll work with you and @slevis-lmwg to start testing

@ekluzek ekluzek changed the title Initializing itype as spval for fates patches ctsm5.3.044: Initializing itype as spval for fates patches May 12, 2025
@slevis-lmwg slevis-lmwg moved this from Todo to In Progress in LMWG: Sprint Planning Board May 12, 2025
@glemieux glemieux moved this from Under Review to Final Testing in FATES Pull Request Planning and Status May 12, 2025
@slevis-lmwg slevis-lmwg changed the title ctsm5.3.044: Initializing itype as spval for fates patches ctsm5.3.045: Initializing itype as spval for fates patches May 14, 2025
@samsrabin samsrabin requested a review from ekluzek May 15, 2025 16:12
@samsrabin samsrabin added PR status: awaiting review Work on this PR is paused while waiting for review. and removed PR status: needs testing labels May 15, 2025
@ekluzek ekluzek removed the PR status: awaiting review Work on this PR is paused while waiting for review. label May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bfb bit-for-bit enhancement new capability or improved behavior of existing capability FATES A change needed for FATES that doesn't require a FATES API update.
Projects
Status: In progress - master
Status: In Progress
Development

Successfully merging this pull request may close these issues.

setting patch%itype to invalid for FATES patches
5 participants