Skip to content

Commit

Permalink
Changes logic of an if statement in calc_slope_functions to avoid cha…
Browse files Browse the repository at this point in the history
…nge in answers
  • Loading branch information
gustavo-marques committed Jun 6, 2019
1 parent b3c0b69 commit f52375b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/parameterizations/lateral/MOM_lateral_mixing_coeffs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -416,15 +416,12 @@ subroutine calc_slope_functions(h, tv, dt, G, GV, US, CS)
if (.not. associated(CS)) call MOM_error(FATAL, "MOM_lateral_mixing_coeffs.F90, calc_slope_functions:"//&
"Module must be initialized before it is used.")

if (CS%calculate_Eady_growth_rate .or. CS%use_stored_slopes &
.or. CS%use_GME_VarMix) then
if (CS%calculate_Eady_growth_rate) then
call find_eta(h, tv, G, GV, US, e, halo_size=2)
if (CS%use_stored_slopes) then
call calc_isoneutral_slopes(G, GV, US, h, e, tv, dt*CS%kappa_smooth, &
CS%slope_x, CS%slope_y, CS%N2_u, CS%N2_v, 1)
if (CS%calculate_Eady_growth_rate) then
call calc_Visbeck_coeffs(h, CS%slope_x, CS%slope_y, CS%N2_u, CS%N2_v, G, GV, CS)
endif
CS%slope_x, CS%slope_y, N2_u, N2_v, 1)
call calc_Visbeck_coeffs(h, CS%slope_x, CS%slope_y, N2_u, N2_v, G, GV, CS)
! call calc_slope_functions_using_just_e(h, G, CS, e, .false.)
else
!call calc_isoneutral_slopes(G, GV, h, e, tv, dt*CS%kappa_smooth, CS%slope_x, CS%slope_y)
Expand Down

0 comments on commit f52375b

Please sign in to comment.