Skip to content

Commit

Permalink
Fixes a bug in method2 of LBM, where diffusivities were not used
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Sep 19, 2019
1 parent 4d5c786 commit 73d0d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracer/MOM_lateral_boundary_mixing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ subroutine fluxes_layer_method(boundary, nk, deg, h_L, h_R, hbl_L, hbl_R, phi_L,
phi_R_avg = average_value_ppoly( nk, phi_R, ppoly0_E_R, ppoly0_coefs_R, method, k_top_R, 1.0-zeta_top_R, 1.0)
heff = harmonic_mean(h_work_L, h_work_R)
! tracer flux where the minimum BLD intersets layer
F_layer(k_top_max) = -heff * (phi_R_avg - phi_L_avg)
F_layer(k_top_max) = (-heff * khtr_u) * (phi_R_avg - phi_L_avg)
do k = k_top_max+1,nk
heff = harmonic_mean(h_L(k), h_R(k))
F_layer(k) = -heff * (phi_R(k) - phi_L(k))
F_layer(k) = -(heff * khtr_u) * (phi_R(k) - phi_L(k))
enddo
endif
end subroutine fluxes_layer_method
Expand Down

0 comments on commit 73d0d78

Please sign in to comment.