Skip to content

Commit e3e9c69

Browse files
authored
Update btstep negative eta warning (#844)
* Update btstep negative eta warning In Boussinesq mode the eta below bathyT warning includes the location, but in non-Boussinesq mode the corresponding negative eta warning does not. Added the location to the negative eta warning. No answers are changed. * 4 space indenting of continuation lines
1 parent 3142c3f commit e3e9c69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/MOM_barotropic.F90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2536,8 +2536,11 @@ subroutine btstep(U_in, V_in, eta_in, dt, bc_accel_u, bc_accel_v, forces, pbce,
25362536
else
25372537
do j=js,je ; do i=is,ie
25382538
if (eta(i,j) < 0.0) then
2539+
write(mesg,'(" at ", ES12.4, ES12.4, i7, i7)') &
2540+
G%geoLonT(i,j), G%geoLatT(i,j), i + G%HI%idg_offset, j + G%HI%jdg_offset
25392541
if (err_count < 2) &
2540-
call MOM_error(WARNING, "btstep: negative eta in a non-Boussinesq barotropic solver.", all_print=.true.)
2542+
call MOM_error(WARNING, "btstep: negative eta in a non-Boussinesq barotropic solver "//&
2543+
trim(mesg), all_print=.true.)
25412544
err_count = err_count + 1
25422545
endif
25432546
enddo ; enddo

0 commit comments

Comments
 (0)