Skip to content

Commit

Permalink
Update netcdf_err routine to abort for an error.
Browse files Browse the repository at this point in the history
Prepend 'FATAL ERROR' to the error message as required
by NCO.

Fixes #909.
  • Loading branch information
George Gayno committed Mar 12, 2024
1 parent 5e39d0a commit 33a8df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sorc/orog_mask_tools.fd/orog.fd/netcdf_io.F90
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ subroutine netcdf_err( err, string )

if( err.EQ.NF_NOERR )return
errmsg = NF_STRERROR(err)
print*, trim(string), ': ', trim(errmsg)
print*, 'FATAL ERROR: ', trim(string), ': ', trim(errmsg)
call abort

return
end subroutine netcdf_err
Expand Down

0 comments on commit 33a8df2

Please sign in to comment.