Skip to content

Expand error message when OBC files are missing #851

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

Merged

Conversation

theresa-cordero
Copy link

See CEFI-regional-MOM6 issue 154

The current error message when an OBC file name is incorrect or the file is missing is not clear. This PR adds to the existing error message to give two more possible reasons the error may be triggered.

Theresa Morrison added 3 commits March 11, 2025 09:57
Add a check if the OBC file exists and give a fatal error if not.
@theresa-cordero
Copy link
Author

theresa-cordero commented Mar 12, 2025

After discussing with @Hallberg-NOAA it was suggested that I change this to an explicit check if the file exists and then give an error if not.

Note this is already within a check that a filename does exist and therefore should not cause a crash for set ups where OBC's are used but file names are not required.

Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

I agree that this added error message should be much more informative than its predecessor.

@Hallberg-NOAA
Copy link
Member

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/26712.

@Hallberg-NOAA Hallberg-NOAA merged commit 88306bd into NOAA-GFDL:dev/gfdl Mar 12, 2025
10 checks passed
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.

2 participants