Skip to content

Commit

Permalink
Improve error handling to catch missing untemplated files
Browse files Browse the repository at this point in the history
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
  • Loading branch information
lizziel committed Feb 16, 2022
1 parent b05beb8 commit 4a7eb24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated `components.yaml`. These changes are to support using Spack to build MAPL
- ESMA_cmake v3.10.0 (add `FindESMF.cmake` from NOAA-EMC)
- ecbuild geos/v1.2.0 (updat `FindNetCDF.cmake` to that from NOAA-EMC)
- File not found error handling in ExtData improved for non-templated filenames

### Removed

Expand Down
4 changes: 3 additions & 1 deletion gridcomps/ExtData/ExtDataGridCompMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2113,8 +2113,10 @@ subroutine GetLevs(item, time, state, allowExtrap, rc)
if (found) then
call MakeMetadata(file,item%pfioCollection_id,metadata,__RC__)
else
if (allowExtrap .and. (item%cyclic == 'n') ) then
if (index(item%file,'%') == 0) then
_ASSERT(.false.,'File ' // trim(item%file) // ' not found')

else if (allowExtrap .and. (item%cyclic == 'n') ) then
ftime = item%reff_time
n = 0
maxOffSet = 100
Expand Down

0 comments on commit 4a7eb24

Please sign in to comment.