Skip to content

Commit

Permalink
Fix combo of constant and lat dependent background diffusivity.
Browse files Browse the repository at this point in the history
Add constant background viscosity KD to latitudinal dependent
formulations, if any.

Closes NCAR#238
  • Loading branch information
dcherian committed Mar 22, 2023
1 parent 72e5535 commit 06d950c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameterizations/vertical/MOM_set_diffusivity.F90
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ subroutine set_diffusivity(u, v, h, u_h, v_h, tv, fluxes, optics, visc, dt, Kd_i

! Copy the 2-d slices into the 3-d array that is exported.
do K=1,nz+1 ; do i=is,ie
Kd_int(i,j,K) = Kd_int_2d(i,K)
Kd_int(i,j,K) = Kd_int(i,j,K) + Kd_int_2d(i,K)
enddo ; enddo

if (CS%limit_dissipation) then
Expand Down

0 comments on commit 06d950c

Please sign in to comment.