Skip to content

MOM_interface changes for regional setups#316

Open
manishvenu wants to merge 6 commits intoESCOMP:mainfrom
CROCODILE-CESM:regional_changes_for_croc
Open

MOM_interface changes for regional setups#316
manishvenu wants to merge 6 commits intoESCOMP:mainfrom
CROCODILE-CESM:regional_changes_for_croc

Conversation

@manishvenu
Copy link
Copy Markdown
Collaborator

@manishvenu manishvenu commented Mar 25, 2026

Details:
Changes to the configuration for regional setups. This includes new PE layouts, new compsets, and a new xml variable to turn on regional defaults, which currently only changes MOM_input. The bulk of the new changes are to MOM_input.

Comment thread param_templates/MOM_input.yaml Outdated
MLE_USE_PBL_MLD:
description: |
"TODO"
"TODO
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove TODO?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Hey Alper, I wasn't sure if this was just for the description, if it is, happy to remove it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes, i think it's just for the description.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

@alperaltuntas
Copy link
Copy Markdown
Member

@manishvenu Is this PR ready for testing? Any reason to keep it draft, or is it ready to be reviewed?

@manishvenu manishvenu marked this pull request as ready for review April 30, 2026 17:28
Copy link
Copy Markdown
Collaborator

@mnlevy1981 mnlevy1981 left a comment

Choose a reason for hiding this comment

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

If the regular expressions in config_pes.xml get to be too much, we can punt on that... but I do think we want to update config_component.xml

Comment thread cime_config/config_component.xml Outdated
<valid_values>REGIONAL,GLOBAL</valid_values>
<default_value>GLOBAL</default_value>
<values>
<value compset="_MOM6%REGIONAL">REGIONAL</value>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If you change this to

-<value compset="_MOM6%REGIONAL">REGIONAL</value>
+<value compset="_MOM6%[^_]*REGIONAL">REGIONAL</value>

Then you are not required to put %REGIONAL as the first compset modifier (MOM6%REGIONAL%MARBL-BIO would be equivalent to MOM6%MARBL-BIO%REGIONAL)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

</pes>
</mach>
<mach name="derecho">
<pes pesize="any" compset="_DATM.+_SICE.*_MOM6%REGIONAL(?!.*%MARBL-BIO).+_SWAV">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same thing, I think you want MOM6%[^_]*REGIONAL here

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hmm, you might need additional logic to rule out MOM6%MARBL-BIO%REGIONAL. What a mess

<rootpe_glc>0</rootpe_glc>
</rootpe>
</pes>
<pes pesize="any" compset="_DATM.+_SICE.*_MOM6%REGIONAL[^_]*MARBL-BIO.+_SWAV">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this one is trickier, because you need an or statement to capture when MARBL-BIO precedes REGIONAL, but I would start with MOM6%[^_]*REGIONAL[^_]*MARBL-BIO. The right answer might be MOM6%([^_]*REGIONAL[^_]*MARBL-BIO|[^_]*MARBL-BIO[^_]*REGIONAL) but I'm not super confident in that

<rootpe_glc>0</rootpe_glc>
</rootpe>
</pes>
<pes pesize="any" compset="_DATM.+_CICE.*_MOM6%REGIONAL(?!.*%MARBL-BIO).+_SWAV">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as one of the above comments

<rootpe_glc>0</rootpe_glc>
</rootpe>
</pes>
<pes pesize="any" compset="_DATM.+_CICE.*_MOM6%REGIONAL[^_]*MARBL-BIO.+_SWAV">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as one of the above comments

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.

3 participants