Skip to content

Commit e13b134

Browse files
Theresa MorrisonTheresa Morrison
authored andcommitted
Add error warning if diabatic_first is true
Currently, this option is not intended to be used if diabatic_first is true, so a fatal error flag has been added. This will be addressed in a future pull request.
1 parent 97c9aeb commit e13b134

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/MOM.F90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,6 +2388,9 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
23882388
"The actual tracer advection timestep that is used in this "//&
23892389
"case is the largest integer multiple of the coupling "//&
23902390
"timestep that is less than or equal to DT_TADVECT.", default=.false.)
2391+
if ( CS%diabatic_first .and. (CS%dt_tadvect /= CS%dt_therm) ) then
2392+
call MOM_error(FATAL,"MOM: If using DIABATIC_FIRST, DT_TADVECT must equal DT_THERM.")
2393+
endif
23912394

23922395
if (bulkmixedlayer) then
23932396
CS%Hmix = -1.0 ; CS%Hmix_UV = -1.0

0 commit comments

Comments
 (0)