Skip to content

Commit f908386

Browse files
author
brandon.reichl
committed
Fix KdWork issue in legacy driver and whitespace
1 parent b7dd31a commit f908386

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/parameterizations/vertical/MOM_diabatic_driver.F90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,12 @@ subroutine diabatic_ALE_legacy(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Tim
625625
is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec ; nz = GV%ke
626626
Isq = G%IscB ; Ieq = G%IecB ; Jsq = G%JscB ; Jeq = G%JecB
627627
dz_neglect = GV%dZ_subroundoff ; dz_neglect2 = dz_neglect*dz_neglect
628+
h_neglect = GV%H_subroundoff
629+
630+
nonBous = .not.(GV%Boussinesq .or. GV%semi_Boussinesq)
631+
g_Rho0 = GV%g_Earth_Z_T2 / GV%H_to_RZ
632+
H_to_pres = GV%H_to_RZ * GV%g_Earth
633+
alt_H_to_pres = H_to_pres * US%L_to_Z**2 * GV%Z_to_H
628634

629635
Kd_heat(:,:,:) = 0.0 ; Kd_salt(:,:,:) = 0.0
630636

src/parameterizations/vertical/MOM_set_diffusivity.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ subroutine set_diffusivity(u, v, h, u_h, v_h, tv, fluxes, optics, visc, dt, Kd_i
644644
enddo ; enddo ; endif
645645
if (associated (VBF%Kd_slope)) then ; do K=1,nz+1 ; do i=is,ie
646646
VBF%Kd_slope(i,j,K) = Kd_slope_2d(i,K)
647-
enddo ; enddo ; endif
647+
enddo ; enddo ; endif
648648

649649
if (CS%id_prof_leak > 0) then ; do k=1,nz; do i=is,ie
650650
dd%prof_leak(i,j,k) = prof_leak_2d(i,k)

0 commit comments

Comments
 (0)