Skip to content

Commit

Permalink
fix uninitialized oneOrTwo
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Apr 24, 2019
1 parent 379e9ee commit d8b7825
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parameterizations/lateral/MOM_lateral_mixing_coeffs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ subroutine VarMix_init(Time, G, GV, param_file, diag, CS)
'Depth average square of slope magnitude, S^2, at v-points, as used in Visbeck et al.', 's-2')
endif

oneOrTwo = 1.0
if (CS%Resoln_scaled_Kh .or. CS%Resoln_scaled_KhTh .or. CS%Resoln_scaled_KhTr) then
CS%calculate_Rd_dx = .true.
CS%calculate_res_fns = .true.
Expand Down Expand Up @@ -937,8 +938,6 @@ subroutine VarMix_init(Time, G, GV, param_file, diag, CS)
"is the more appropriate definition.\n", default=.false.)
if (Gill_equatorial_Ld) then
oneOrTwo = 2.0
else
oneOrTwo = 1.0
endif

do J=js-1,Jeq ; do I=is-1,Ieq
Expand Down

0 comments on commit d8b7825

Please sign in to comment.