Skip to content

Commit

Permalink
Added FATAL if trying to use parameterization in non-Boussinesq mode
Browse files Browse the repository at this point in the history
- Per feedback on #1156
  • Loading branch information
adcroft committed Jul 10, 2020
1 parent ec0946c commit 4307fa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/MOM_PressureForce_FV.F90
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ subroutine PressureForce_FV_nonBouss(h, tv, PFu, PFv, G, GV, US, CS, ALE_CSp, p_

if (.not.associated(CS)) call MOM_error(FATAL, &
"MOM_PressureForce_FV_nonBouss: Module must be initialized before it is used.")
if (CS%Stanley_T2_det_coeff>=0.) call MOM_error(FATAL, &
"MOM_PressureForce_FV_nonBouss: The Stanley parameterization is not yet"//&
"implemented in non-Boussinesq mode.")

use_p_atm = .false.
if (present(p_atm)) then ; if (associated(p_atm)) use_p_atm = .true. ; endif
Expand Down

0 comments on commit 4307fa5

Please sign in to comment.