Skip to content

Commit af42044

Browse files
committed
(*)Corrected the default for TOLERENCE_ENT
Changed the exprsssion for the default value of TOLERENCE_ENT so that it does not vary with changes to H_TO_M. This could change answers (or at least parameter_doc files) if H_TO_M is not 1 (in which case the previous expression had mixed units), USE_REGRIDDING is false, and TOLERENCE_ENT is not set explicitly, but the existing reference solutions are unaffected.
1 parent 9933c22 commit af42044

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parameterizations/vertical/MOM_entrain_diffusive.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ subroutine entrain_diffusive_init(Time, G, GV, param_file, diag, CS)
22552255
! CS%Tolerance_Ent = MAX(100.0*GV%Angstrom,1.0e-4*sqrt(dt*Kd)) !
22562256
call get_param(param_file, mod, "TOLERANCE_ENT", CS%Tolerance_Ent, &
22572257
"The tolerance with which to solve for entrainment values.", &
2258-
units="m", default=MAX(100.0*GV%Angstrom,1.0e-4*sqrt(dt*Kd)))
2258+
units="m", default=MAX(100.0*GV%Angstrom_Z,1.0e-4*sqrt(dt*Kd)))
22592259

22602260
CS%id_Kd = register_diag_field('ocean_model', 'Kd_effective', diag%axesTL, Time, &
22612261
'Diapycnal diffusivity as applied', 'meter2 second-1')

0 commit comments

Comments
 (0)