Skip to content

Expand error message when OBC files are missing#851

Merged
Hallberg-NOAA merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
theresa-cordero:add_to_obc_error_message
Mar 12, 2025
Merged

Expand error message when OBC files are missing#851
Hallberg-NOAA merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
theresa-cordero:add_to_obc_error_message

Conversation

@theresa-cordero
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

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