Skip to content

Commit

Permalink
Merge pull request CVMix#99 from klindsay28/correct_StokesMOST_uninit…
Browse files Browse the repository at this point in the history
…ialized_vars

correct uninitialized variables in StokesMOST
  • Loading branch information
mnlevy1981 authored Jan 4, 2025
2 parents 87c3c0c + 001b4d1 commit 2e7532c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shared/cvmix_kpp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,11 @@ subroutine cvmix_coeffs_kpp_low(Mdiff_out, Tdiff_out, Sdiff_out, zw, zt, &
end if

! (3a) Compute turbulent scales at interfaces throughout column
Tnonlocal = cvmix_zero
Snonlocal = cvmix_zero
OBL_Mdiff = cvmix_zero
OBL_Tdiff = cvmix_zero
OBL_Sdiff = cvmix_zero
sigma = -zw(1:nlev+1)/OBL_depth
call cvmix_kpp_compute_turbulent_scales(sigma, OBL_depth, surf_buoy, & !_1d
surf_fric, xi=StokesXI, w_m=w_m, w_s=w_s, &
Expand Down

0 comments on commit 2e7532c

Please sign in to comment.