Skip to content

Commit

Permalink
Copy OBLD to visc%MLD when using KPP
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Aug 29, 2018
1 parent d3d8215 commit ddccc44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parameterizations/vertical/MOM_diabatic_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ subroutine diabatic(u, v, h, tv, Hml, fluxes, visc, ADp, CDp, dt, Time_end, &
if (associated(Hml)) then
call KPP_get_BLD(CS%KPP_CSp, Hml(:,:), G)
call pass_var(Hml, G%domain, halo=1)
! If visc%MLD exists, copy KPP's BLD into it
if (associated(visc%MLD)) visc%MLD(:,:) = Hml(:,:)
endif

call cpu_clock_end(id_clock_kpp)
Expand Down Expand Up @@ -1532,6 +1534,8 @@ subroutine legacy_diabatic(u, v, h, tv, Hml, fluxes, visc, ADp, CDp, dt, Time_en
if (associated(Hml)) then
call KPP_get_BLD(CS%KPP_CSp, Hml(:,:), G)
call pass_var(Hml, G%domain, halo=1)
! If visc%MLD exists, copy KPP's BLD into it
if (associated(visc%MLD)) visc%MLD(:,:) = Hml(:,:)
endif

if (.not. CS%KPPisPassive) then
Expand Down

0 comments on commit ddccc44

Please sign in to comment.