Skip to content

Commit

Permalink
remove OMP enclosing get_BLD call
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Apr 22, 2020
1 parent 1e7fa51 commit e5fcc69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/parameterizations/vertical/MOM_CVMix_KPP.F90
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ logical function KPP_init(paramFile, G, GV, US, diag, Time, CS, passive, Waves)
'If true, apply OBLdepth smoothing at a cell only if the OBLdepth '// &
'gets deeper via smoothing.', &
default=.false.)
id_clock_KPP_smoothing = cpu_clock_id('Ocean KPP BLD smoothing)', grain=CLOCK_ROUTINE)
id_clock_KPP_smoothing = cpu_clock_id('(Ocean KPP BLD smoothing)', grain=CLOCK_ROUTINE)
endif
call get_param(paramFile, mdl, 'RI_CRIT', CS%Ri_crit, &
'Critical bulk Richardson number used to define depth of the '// &
Expand Down Expand Up @@ -590,7 +590,7 @@ logical function KPP_init(paramFile, G, GV, US, diag, Time, CS, passive, Waves)
if (CS%id_EnhK > 0) CS%EnhK(:,:,:) = 0.

id_clock_KPP_calc = cpu_clock_id('Ocean KPP calculate)', grain=CLOCK_MODULE)
id_clock_KPP_compute_BLD = cpu_clock_id('Ocean KPP comp BLD)', grain=CLOCK_ROUTINE)
id_clock_KPP_compute_BLD = cpu_clock_id('(Ocean KPP comp BLD)', grain=CLOCK_ROUTINE)

end function KPP_init

Expand Down
2 changes: 0 additions & 2 deletions src/parameterizations/vertical/MOM_diabatic_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1448,9 +1448,7 @@ subroutine diabatic_ALE(u, v, h, tv, Hml, fluxes, visc, ADp, CDp, dt, Time_end,
Kd_salt, visc%Kv_shear, CS%KPP_NLTheat, CS%KPP_NLTscalar, Waves=Waves)

if (associated(Hml)) then
!$OMP parallel default(shared)
call KPP_get_BLD(CS%KPP_CSp, Hml(:,:), G)
!$OMP end parallel
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(:,:)
Expand Down

0 comments on commit e5fcc69

Please sign in to comment.