Skip to content

Commit

Permalink
Corrects the routine indicated in 2 error messages
Browse files Browse the repository at this point in the history
  Corrected error messages to indicate the right subroutine in
rescale_dyn_horgrid_bathymetry.  All answers are bitwise identical.
  • Loading branch information
Hallberg-NOAA committed Aug 15, 2021
1 parent 4d8d7af commit e4ffa76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/MOM_dyn_horgrid.F90
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ subroutine rescale_dyn_horgrid_bathymetry(G, m_in_new_units)

if (m_in_new_units == 1.0) return
if (m_in_new_units < 0.0) &
call MOM_error(FATAL, "rescale_grid_bathymetry: Negative depth units are not permitted.")
call MOM_error(FATAL, "rescale_dyn_horgrid_bathymetry: Negative depth units are not permitted.")
if (m_in_new_units == 0.0) &
call MOM_error(FATAL, "rescale_grid_bathymetry: Zero depth units are not permitted.")
call MOM_error(FATAL, "rescale_dyn_horgrid_bathymetry: Zero depth units are not permitted.")

rescale = 1.0 / m_in_new_units
do j=jsd,jed ; do i=isd,ied
Expand Down

0 comments on commit e4ffa76

Please sign in to comment.