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

Add better error handling to read_var_sizes #345

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Add better error handling to read_var_sizes when a missing file or missing variable is provided as an argument. Without this change the model fails with a segmentation fault on line 768 of MOM_io.F90 if a bad file or variable name is provided. With this change, a useful error message is returned. All answers are bitwise identical in all cases that worked previously.

  Add better error handling to read_var_sizes when a missing file or missing
variable is provided as an argument.  Without this change the model fails with a
segmentation fault on line 768 of MOM_io.F90 if a bad file or variable name is
provided.  With this change, a useful error message is returned.  All answers
are bitwise identical in all cases that worked previously.
@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Merging #345 (08a6aff) into dev/gfdl (f9897c8) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 08a6aff differs from pull request most recent head 9932a09. Consider uploading reports for the commit 9932a09 to get more accurate results

@@            Coverage Diff            @@
##           dev/gfdl     #345   +/-   ##
=========================================
  Coverage     37.07%   37.07%           
=========================================
  Files           264      264           
  Lines         74349    74353    +4     
  Branches      13787    13788    +1     
=========================================
+ Hits          27567    27569    +2     
- Misses        41684    41686    +2     
  Partials       5098     5098           
Impacted Files Coverage Δ
src/framework/MOM_io.F90 30.43% <0.00%> (-0.12%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Mar 31, 2023
@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/18854 ✔️

@marshallward marshallward merged commit 7225642 into NOAA-GFDL:dev/gfdl Apr 21, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the read_var_sizes_error_handling branch May 10, 2024 22:13
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 this pull request may close these issues.

2 participants