Skip to content

Commit

Permalink
Initialize new variables to zero in kappa_shear
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon.reichl authored and brandon.reichl committed Mar 5, 2025
1 parent 867044f commit 9fa3d3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parameterizations/vertical/MOM_kappa_shear.F90
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,11 @@ subroutine Calc_kappa_shear_vertex(u_in, v_in, h, T_in, S_in, tv, p_surf, kappa_
if (CS%id_N2_mean>0) diag_N2_mean(:,:,:) = 0.0
if (CS%id_S2_mean>0) diag_S2_mean(:,:,:) = 0.0
kappa_vertex(:,:,:) = 0.0
hweight_ul(:,:,:) = 0.0
hweight_ur(:,:,:) = 0.0
hweight_ll(:,:,:) = 0.0
hweight_lr(:,:,:) = 0.0
h_int_mask(:,:,:) = 0.0

use_temperature = associated(tv%T)

Expand Down

0 comments on commit 9fa3d3d

Please sign in to comment.