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

Need to provide TOPO_FILE arg in MOM_input otherwise MOM6 looks for bathymetry in topog.nc #172

Closed
AVEllepola opened this issue May 4, 2024 · 6 comments · Fixed by #173
Assignees
Labels
bug 🐞 Something isn't working

Comments

@AVEllepola
Copy link

AVEllepola commented May 4, 2024

I am currently using regional_mom6 version 0.5.1. I get the following error when I try to run the reanalysis example. Renaming a copy of the bathymetry.nc file in the inputdir as topog.nc resolved this. Just wanted to share this as a user experience.
Untitled

@navidcy navidcy changed the title user experience MOM6 seems to be expecting a bathymetry named topog.nc while regional-mom6 creates a bathymetry.nc May 4, 2024
@navidcy
Copy link
Contributor

navidcy commented May 4, 2024

thanks @AVEllepola! I just renamed the issue title to be descriptive of the situation.

cc @ashjbarnes

@navidcy
Copy link
Contributor

navidcy commented May 4, 2024

I'm wondering if the expectation for a bathymetry file called topog.nc comes from MOM6 itself or from the MOM6 input files that the regional-mom6 package provides. @ashjbarnes do you have an idea?

@navidcy
Copy link
Contributor

navidcy commented May 4, 2024

Here it seems that the "premade" input files are such that topography is expected to be read from file:

TOPO_CONFIG = "file" !
! This specifies how bathymetry is specified:
! file - read bathymetric information from the file
! specified by (TOPO_FILE).

But do we provide the TOPO_FILE variable?

@navidcy
Copy link
Contributor

navidcy commented May 4, 2024

seems to me that if we don't provide TOPO_FILE then MOM6 assumes that the filename is topog.nc

https://github.com/NOAA-GFDL/MOM6/blob/b98acd861d835c0bf5894f872516d2338a4791f4/src/initialization/MOM_shared_initialization.F90#L156-L158

@navidcy navidcy added the bug 🐞 Something isn't working label May 4, 2024
@navidcy navidcy changed the title MOM6 seems to be expecting a bathymetry named topog.nc while regional-mom6 creates a bathymetry.nc Without a TOPO_FILE arg in MOM_input, MOM6 expects (by default) a bathymetry named topog.nc while regional-mom6 creates a file bathymetry.nc May 4, 2024
@navidcy navidcy changed the title Without a TOPO_FILE arg in MOM_input, MOM6 expects (by default) a bathymetry named topog.nc while regional-mom6 creates a file bathymetry.nc Need to provide TOPO_FILE arg in MOM_input otherwise MOM6 looks for bathymetry in topog.nc May 4, 2024
@navidcy
Copy link
Contributor

navidcy commented May 4, 2024

@ashjbarnes, what's a good solution here you think?

@ashjbarnes
Copy link
Collaborator

Thanks @AVEllepola ! This should sort it out. I've tested with this branch and mom6 runs on the example demo again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants