Skip to content

fix(domains): Read MASKTABLE parameter when AUTO_MASKTABLE is enabled - #1181

Open
johnpaulalex wants to merge 1 commit into
NOAA-GFDL:dev/gfdlfrom
johnpaulalex:fix_auto_mask_table_multi_instance
Open

fix(domains): Read MASKTABLE parameter when AUTO_MASKTABLE is enabled#1181
johnpaulalex wants to merge 1 commit into
NOAA-GFDL:dev/gfdlfrom
johnpaulalex:fix_auto_mask_table_multi_instance

Conversation

@johnpaulalex

@johnpaulalex johnpaulalex commented Sep 6, 2026

Copy link
Copy Markdown

In MOM_domains_init, when AUTO_MASKTABLE is .true., MOM6 previously hardcoded the auto-generated mask table filename to "MOM_auto_mask_table".

This change updates MOM_domains_init to query the MASKTABLE runtime parameter from param_file (with fallback default "MOM_auto_mask_table"), which also enables instance-suffixed mask table filenames (e.g., MOM_auto_mask_table_0001, MOM_auto_mask_table_0002).

Details: rather than a separate code branch which hardcodes "MOM_auto_mask_table", now there is a single unified get_param call to read MASKTABLE.

All answers are expected to be bitwise identical for single-instance runs.

Resolves ESCOMP/MOM_interface#269 when combined with sibling PR ESCOMP/MOM_interface#348 which changes CESM's defaults to use instance-suffixed filenames. See the other PR for description of why the PRs can be released in any order.

Google Antigravity was used to write the code and tests, followed by human-guided verification.

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.

MOM_auto_mask_table problem for multi-instance cases

1 participant