Skip to content

Conversation

ekluzek
Copy link
Collaborator

@ekluzek ekluzek commented Jan 18, 2025

Description of changes

Correct the input groups with filenames to be added to cpl.input_data_list. Add more error messaging to the log files around rpointer errors. Set the drv_restart_pointer by default to none, unless it's needed, and make it a relative path to RUNDIR so will be added to cpl.input_data_list and checked that it exists.

Specific notes

Contributors other than yourself, if any:

CMEPS Issues Fixed (include github issue #):
Fixes #524
Fixes #525
Fixes #526

Are changes expected to change answers? bfb

Any User Interface Changes (namelist or namelist defaults changes)? yes
drv_restart_pointer gets set to "none" except for cases that need it like branch

Testing performed.

currently only tested with ctsm5.3.020 which uses: ccs_config_cesm1.0.16, and cime from ESMCI/cime#4739
and for a simple case with a startup and branch type

will do more testing, and will update the PR and report about what's done.
Plan to run aux_clm testlist as well as aux_cmeps.

… allow continue_run as well), add it as a file that will be put into cpl.input_data_list for existence checking, fixing ESCOMP#525
@ekluzek ekluzek added enhancement New feature or request Responsibility: CTSM Responsibility to manage and accomplish this issue is the CTSM Software group labels Jan 18, 2025
…e drv_restart_pointer is set in that case, also move it and rundir to the default_settings group so won't be output
…utdata named none -- but when UNSET is used it doesn't add it to cpl.input_data_list and so works
@ekluzek
Copy link
Collaborator Author

ekluzek commented Jan 24, 2025

#532 brings in some additional nice changes beyond what is in here. And after that comes in I'll update to it, and likely change a few things here that won't be needed anymore.

@ekluzek
Copy link
Collaborator Author

ekluzek commented Jan 24, 2025

Copy link
Member

@billsacks billsacks left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your work fixing this issue, @ekluzek !

I have a few questions / possible suggestions here. I'm not familiar enough with this to give a confident review, but I can try to review more carefully if needed.

# --------------------------------
namelist_file = os.path.join(confdir, "drv_in")
drv_namelist_groups = ["papi_inparm", "prof_inparm", "debug_inparm"]
drv_namelist_groups = ["DRIVER_attributes", "MED_attributes", "ALLCOMP_attributes", "ROF_attributes", "WAV_attributes"]
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain this change - why you removed the old set and how you chose this new set of groups?

Comment on lines +21 to +39
<entry id="rundir" modify_via_xml="RUNDIR">
<type>char</type>
<category>nuopc</category>
<!-- NOTE: This won't be output only used as an attribute in this file -->
<group>default_settings</group>
<values>
<value>$RUNDIR</value>
</values>
</entry>

<entry id="continue_run" modify_via_xml="CONTINUE_RUN">
<type>logical</type>
<category>nuopc</category>
<!-- NOTE: This won't be output only used as an attribute in this file -->
<group>default_settings</group>
<values>
<value>$CONTINUE_RUN</value>
</values>
</entry>
Copy link
Member

Choose a reason for hiding this comment

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

I'm not super-familiar with this, but I'm thinking that you can accomplish this by setting rundir and continue_run in the config settings in buildnml, similarly to what's currently done for many other variables in _create_drv_namelists.

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

Labels

enhancement New feature or request Responsibility: CTSM Responsibility to manage and accomplish this issue is the CTSM Software group

Projects

Status: Todo

2 participants