Skip to content

Commit

Permalink
Initialize mle_fl_2d
Browse files Browse the repository at this point in the history
Ensure mle_fl_2d(:,:) is set to 0.0 each time the subroutine
mixedlayer_restrat_OM4 is called. This prevents NaN values from
occurring.
  • Loading branch information
gustavo-marques committed Jan 8, 2025
1 parent 9a191ae commit 71b6ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameterizations/lateral/MOM_mixed_layer_restrat.F90
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ subroutine mixedlayer_restrat_OM4(h, uhtr, vhtr, tv, forces, dt, h_MLD, VarMix,
h_min = 0.5*GV%Angstrom_H ! This should be GV%Angstrom_H, but that value would change answers.
covTS(:) = 0.0 !!Functionality not implemented yet; in future, should be passed in tv
varS(:) = 0.0

mle_fl_2d(:,:) = 0.0
vonKar_x_pi2 = CS%vonKar * 9.8696

if (.not.associated(tv%eqn_of_state)) call MOM_error(FATAL, "mixedlayer_restrat_OM4: "// &
Expand Down

0 comments on commit 71b6ba3

Please sign in to comment.