Skip to content

Commit cb65bdc

Browse files
Change name of logical
Replaces LU_pred to L_diag, since now this logical only controls if diagnostics should be posted.
1 parent 9c103f1 commit cb65bdc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/MOM_dynamics_split_RK2.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ subroutine step_MOM_dyn_split_RK2(u, v, h, tv, visc, Time_local, dt, forces, p_s
362362

363363
real, dimension(SZI_(G),SZJ_(G)) :: hbl ! Boundary layer depth from Cvmix
364364
real :: dt_pred ! The time step for the predictor part of the baroclinic time stepping [T ~> s].
365-
logical :: LU_pred ! Controls if it is predictor step or not
365+
logical :: L_diag ! Controls if diagostics are posted in the vertFPmix
366366
logical :: dyn_p_surf
367367
logical :: BT_cont_BT_thick ! If true, use the BT_cont_type to estimate the
368368
! relative weightings of the layers in calculating
@@ -666,12 +666,12 @@ subroutine step_MOM_dyn_split_RK2(u, v, h, tv, visc, Time_local, dt, forces, p_s
666666
GV, US, CS%vertvisc_CSp, CS%taux_bot, CS%tauy_bot, waves=waves)
667667

668668
if (CS%fpmix) then
669-
LU_pred = .true.
669+
L_diag = .false.
670670
hbl(:,:) = 0.0
671671
if (ASSOCIATED(CS%KPP_CSp)) call KPP_get_BLD(CS%KPP_CSp, hbl, G, US, m_to_BLD_units=GV%m_to_H)
672672
if (ASSOCIATED(CS%energetic_PBL_CSp)) &
673673
call energetic_PBL_get_MLD(CS%energetic_PBL_CSp, hbl, G, US, m_to_MLD_units=GV%m_to_H)
674-
call vertFPmix(LU_pred, up, vp, uold, vold, hbl, h, forces, &
674+
call vertFPmix(L_diag, up, vp, uold, vold, hbl, h, forces, &
675675
dt_pred, G, GV, US, CS%vertvisc_CSp, CS%OBC)
676676
call vertvisc(up, vp, h, forces, visc, dt_pred, CS%OBC, CS%ADp, CS%CDp, G, &
677677
GV, US, CS%vertvisc_CSp, CS%taux_bot, CS%tauy_bot, waves=waves)
@@ -914,8 +914,8 @@ subroutine step_MOM_dyn_split_RK2(u, v, h, tv, visc, Time_local, dt, forces, p_s
914914
CS%vertvisc_CSp, CS%taux_bot, CS%tauy_bot,waves=waves)
915915

916916
if (CS%fpmix) then
917-
LU_pred = .false.
918-
call vertFPmix(LU_pred, u, v, uold, vold, hbl, h, forces, dt, &
917+
L_diag = .true.
918+
call vertFPmix(L_diag, u, v, uold, vold, hbl, h, forces, dt, &
919919
G, GV, US, CS%vertvisc_CSp, CS%OBC)
920920
call vertvisc(u, v, h, forces, visc, dt, CS%OBC, CS%ADp, CS%CDp, G, GV, US, &
921921
CS%vertvisc_CSp, CS%taux_bot, CS%tauy_bot, waves=waves)

0 commit comments

Comments
 (0)