Skip to content

Conversation

manishvenu
Copy link
Collaborator

Details:
Closes CROCODILE-CESM#5

Changes:

  1. A XML Variable for Regional Mode called MOM6_DOMAIN_TYPE that can be changed with XML change
  2. A variety of changes from Gustavo's MOM_input into MOM_input.yaml using MOM6_DOMAIN_TYPE

Sample Paramater Doc Short: /glade/derecho/scratch/manishrv/gustavo_glorys_3/run/MOM_parameter_doc.short

If helpful to look at differences, diff checker isn't quite great at this b/c buildnml has a diff structure than Gustavo's MOM_input

from regional_mom6 import MOM_parameter_tools as mpt
from pathlib import Path

def main():
    gustavo = mpt.read_MOM_file_as_dict(Path("MOM_input"),"/home/manishrv/croc_cases/panama-2/SourceMods/src.mom")
    new_default = mpt.read_MOM_file_as_dict(Path("MOM_input"),"/home/manishrv/croc_cases/panama-4/CaseDocs/")
    for key in gustavo:
        if key == "original" or key == "filename":
            continue
        if key in new_default:
            if gustavo[key]["value"]!=new_default[key]["value"]:
                print("Difference!",key,gustavo[key]["value"], new_default[key]["value"])
        else:
            #print("Key missing in default", key)
            continue

if __name__ == "__main__":
    main()

There are a few variables like GUST_CONST, ADJUST_NET_FRESH_WATER_TO_ZERO, etc that are different, but it is not clear why.

@manishvenu
Copy link
Collaborator Author

@mnlevy1981 MOM_interface changes for tag

@mnlevy1981 mnlevy1981 self-requested a review September 15, 2025 17:22
@mnlevy1981 mnlevy1981 removed their assignment Sep 15, 2025
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.

Add Gustavo's regional defaults to MOM_interface MOM_input.yaml
2 participants