Skip to content

Commit

Permalink
Fix incorrect netCDF error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rcabell committed Jun 20, 2024
1 parent 57141f7 commit 8f40023
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Routing/Diversions/module_diversions.F
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ subroutine init_diversions(diversions_file, timeslice_path)
ierr = ierr + nf90_get_var(ncid, fraction_vid, div%fraction, start=(/i/))
ierr = ierr + nf90_get_var(ncid, lookback_vid, div%lookback, start=(/i/))
if (ierr > 0) call hydro_stop("Error occurred reading diversion variables from diversion file")
if (ierr /= 0) call hydro_stop("Error occurred reading diversion variables from diversion file")
end associate
end do
Expand Down
1 change: 0 additions & 1 deletion trunk/NDHMS

This file was deleted.

0 comments on commit 8f40023

Please sign in to comment.