Skip to content

b4b: Work on build-namelist Initial Condition file (finidat) picking#3842

Draft
ekluzek wants to merge 3 commits intoESCOMP:b4b-devfrom
ekluzek:work_on_IC_nml_picking
Draft

b4b: Work on build-namelist Initial Condition file (finidat) picking#3842
ekluzek wants to merge 3 commits intoESCOMP:b4b-devfrom
ekluzek:work_on_IC_nml_picking

Conversation

@ekluzek
Copy link
Copy Markdown
Contributor

@ekluzek ekluzek commented Mar 25, 2026

Description of changes

Some work on the initial condition picking in build-namelist. This makes it more robust by making sure use_init_interp is set in nl_flags as strictly either .true. or .false. so it can be used correctly in getting values from namelist-defaults.

Part of what is happening here is that a new subroutine to set the current iteration of use_init_interp is added

setup_preliminary_use_init_interp

which is called a few different places and called more than once. So it makes the handling of use_init_interp as it plays out to be more robust.

Specific notes

Contributors other than yourself, if any:

CTSM Issues Fixed (include github issue #):
Fixes #3832
Work on #2169

Are answers expected to change (and if so in what way)? No, unless there is a bug in finidat picking

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 No

Testing performed, if any: will do regular

ekluzek added 2 commits March 24, 2026 23:30
…p_logic_initial_condition subroutine a few times and elsewhere to get the current use_init_interp setting in order to make the initial_conditions picking more robust working on issue ESCOMP#2169 and resolving ESCOMP#3832
Some final namelist default changes needed

Some important final answer changes needed for the coupled model to get the right parameter file and to set n_melt_glcmec=1 for clm6_0.

Also use the 2015 finidat file for SSP future scenarios. And fix some of the namelist picking for finidat files, especially for: 2003, 2010, and 2015.

 Conflicts:
	bld/CLMBuildNamelist.pm
@ekluzek ekluzek added this to the ctsm6.0.0 (code freeze) milestone Mar 25, 2026
@ekluzek ekluzek self-assigned this Mar 25, 2026
@ekluzek ekluzek added enhancement new capability or improved behavior of existing capability code health improving internal code structure to make easier to maintain (sustainability) bfb bit-for-bit usability Improve or clarify user-facing options labels Mar 25, 2026
@github-project-automation github-project-automation bot moved this to Ready to start (or start again) in CTSM: Upcoming tags Mar 25, 2026
@ekluzek ekluzek added the blocked: dependency Wait to work on this until dependency is resolved label Mar 25, 2026
@ekluzek
Copy link
Copy Markdown
Contributor Author

ekluzek commented Mar 25, 2026

This is blocked by needing ctsm5.4.027 to come to b4b-dev first.

@ekluzek ekluzek changed the base branch from master to b4b-dev March 25, 2026 05:46
@ekluzek ekluzek moved this from Ready to start (or start again) to In progress - b4b-dev in CTSM: Upcoming tags Mar 25, 2026
@ekluzek ekluzek changed the title b4b: Work on ic nml picking b4b: Work on build-namelist Initial Condition file (finidat) picking Mar 25, 2026

NOTE: And they need to be coordinated with clm_start_type that's in namelist_defaults_overall.xml

Find Initial condition files: The settings use_init_interp, init_interp_attributes and finidat MUST allundef;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like these changes should be in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bfb bit-for-bit blocked: dependency Wait to work on this until dependency is resolved code health improving internal code structure to make easier to maintain (sustainability) enhancement new capability or improved behavior of existing capability usability Improve or clarify user-facing options

Projects

Status: In progress - b4b-dev
Status: Todo

Development

Successfully merging this pull request may close these issues.

Put use_init_interp in $nl_flags as either .true. or .false. so can be correctly handled in namelist_defaults_ctsm.xml

1 participant