Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOM_input parameter conflict written by mom6_input.py #14

Open
minghangli-uni opened this issue Jul 30, 2024 · 1 comment
Open

MOM_input parameter conflict written by mom6_input.py #14

minghangli-uni opened this issue Jul 30, 2024 · 1 comment

Comments

@minghangli-uni
Copy link

minghangli-uni commented Jul 30, 2024

Specifically for

CVMix_CONVECTION%
%CVMix_CONVECTION

mom6_input.py incorrectly parses them as

CVMIX_CONVECTION%
%CVMix_CONVECTION

This pops up a conflict for a model run.

A simple fix is to remove this line for now.
mom6_input_str = re.sub(r"((?<=^)|(?<=\n))(\w+%?)", lambda pat: pat.group(2).upper(), mom6_input_str)

@micaeljtoliveira
Copy link
Collaborator

There's indeed an issue with the parser, as it uses f90nml, which will treat the input as case insensitive. I need to rewrite this, as there's no "easy" fix. It's been on my TODO list for a while, but had not time to work on it.

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

No branches or pull requests

2 participants