-
Notifications
You must be signed in to change notification settings - Fork 19
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
Expand allowed _FillValue type and error handling in FileMetadataUtilities.F90 #1506
Expand allowed _FillValue type and error handling in FileMetadataUtilities.F90 #1506
Conversation
@lizziel Looks good. I'm not sure why GEOSadas test failed here. I'm going to re-run it to see if it was a transient issue or something fundamental. |
Nope. It's fundamental. I'll need to fix this and get a fix on |
@lizziel Okay. Can you update your end to the latest develop. I've fixed the CI issue now. |
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
This update prevents run fail when retrieving _FillValue from import files containing double precision data. Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
29ee301
to
e484e71
Compare
I rebased on the latest develop. Hopefully this time all will pass. |
All looks good. I'll run a GEOSgcm run just to make sure it's happy (I can't see why it wouldn't). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, a C24 run of GEOSgcm seems happy.
Description
This update expands error handling in FileMetadataUtilities to print filename in all calls to
_ASSERT
and_FAIL
. Fail messages about unsupported attribute type now specify the unique type constraint per function. For single precision attribute retrieval there is now handling for double precision input.Related Issue
Closes #1489
Motivation and Context
This update prevents run fail when retrieving
_FillValue
from import files containing double precision data used GCHP. It also expands the error handling so that failure on reading import attributes always results in a unique message with the filename, making it easier to find and fix the problem.How Has This Been Tested?
Types of changes
Checklist:
NOTE: I tested this update successfully with GCHP using MAPL 2.18.3. It was not a straightforward cherry-pick due to the addition of _FAIL but I will fix any build issues if they show up in the automatic build test.