Skip to content

Commit

Permalink
Merge branch 'LBD_idealized_experiments2' into regrid_LBD
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Sep 21, 2020
2 parents 2a80964 + 9957e55 commit fa376e4
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 59 deletions.
6 changes: 4 additions & 2 deletions src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,7 @@ subroutine step_MOM_dynamics(forces, p_surf_begin, p_surf_end, dt, dt_thermo, &
p_surf_begin, p_surf_end, CS%uh, CS%vh, CS%uhtr, CS%vhtr, &
CS%eta_av_bc, G, GV, US, CS%dyn_unsplit_RK2_CSp, CS%VarMix, CS%MEKE)
else
! GMM do nothing
call step_MOM_dyn_unsplit(u, v, h, CS%tv, CS%visc, Time_local, dt, forces, &
p_surf_begin, p_surf_end, CS%uh, CS%vh, CS%uhtr, CS%vhtr, &
CS%eta_av_bc, G, GV, US, CS%dyn_unsplit_CSp, CS%VarMix, CS%MEKE, Waves=Waves)
Expand Down Expand Up @@ -1157,8 +1158,9 @@ subroutine step_MOM_tracer_dyn(CS, G, GV, US, h, Time_local)
call cpu_clock_begin(id_clock_thermo) ; call cpu_clock_begin(id_clock_tracer)
call enable_averages(CS%t_dyn_rel_adv, Time_local, CS%diag)

call advect_tracer(h, CS%uhtr, CS%vhtr, CS%OBC, CS%t_dyn_rel_adv, G, GV, US, &
CS%tracer_adv_CSp, CS%tracer_Reg)
! GMM, turn off advection
! call advect_tracer(h, CS%uhtr, CS%vhtr, CS%OBC, CS%t_dyn_rel_adv, G, GV, US, &
! CS%tracer_adv_CSp, CS%tracer_Reg)
call tracer_hordiff(h, CS%t_dyn_rel_adv, CS%MEKE, CS%VarMix, G, GV, US, &
CS%tracer_diff_CSp, CS%tracer_Reg, CS%tv)
if (showCallTree) call callTree_waypoint("finished tracer advection/diffusion (step_MOM)")
Expand Down
15 changes: 9 additions & 6 deletions src/core/MOM_dynamics_unsplit.F90
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ subroutine step_MOM_dyn_unsplit(u, v, h, tv, visc, Time_local, dt, forces, &
if (dyn_p_surf) then ; do j=js-2,je+2 ; do i=is-2,ie+2
p_surf(i,j) = 0.75*p_surf_begin(i,j) + 0.25*p_surf_end(i,j)
enddo ; enddo ; endif
call PressureForce(h_av, tv, CS%PFu, CS%PFv, G, GV, US, &
CS%PressureForce_CSp, CS%ALE_CSp, p_surf)
! GMM, turn off pressure force
! call PressureForce(h_av, tv, CS%PFu, CS%PFv, G, GV, US, &
! CS%PressureForce_CSp, CS%ALE_CSp, p_surf)
call cpu_clock_end(id_clock_pres)

if (associated(CS%OBC)) then; if (CS%OBC%update_OBC) then
Expand Down Expand Up @@ -378,8 +379,9 @@ subroutine step_MOM_dyn_unsplit(u, v, h, tv, visc, Time_local, dt, forces, &
if (dyn_p_surf) then ; do j=js-2,je+2 ; do i=is-2,ie+2
p_surf(i,j) = 0.25*p_surf_begin(i,j) + 0.75*p_surf_end(i,j)
enddo ; enddo ; endif
call PressureForce(h_av, tv, CS%PFu, CS%PFv, G, GV, US, &
CS%PressureForce_CSp, CS%ALE_CSp, p_surf)
! GMM, turn off pressure force
! call PressureForce(h_av, tv, CS%PFu, CS%PFv, G, GV, US, &
! CS%PressureForce_CSp, CS%ALE_CSp, p_surf)
call cpu_clock_end(id_clock_pres)

if (associated(CS%OBC)) then; if (CS%OBC%update_OBC) then
Expand Down Expand Up @@ -453,8 +455,9 @@ subroutine step_MOM_dyn_unsplit(u, v, h, tv, visc, Time_local, dt, forces, &

! PFu = d/dx M(h_av,T,S)
call cpu_clock_begin(id_clock_pres)
call PressureForce(h_av, tv, CS%PFu, CS%PFv, G, GV, US, &
CS%PressureForce_CSp, CS%ALE_CSp, p_surf)
! GMM, turn off pressure force
! call PressureForce(h_av, tv, CS%PFu, CS%PFv, G, GV, US, &
! CS%PressureForce_CSp, CS%ALE_CSp, p_surf)
call cpu_clock_end(id_clock_pres)

if (associated(CS%OBC)) then; if (CS%OBC%update_OBC) then
Expand Down
Loading

0 comments on commit fa376e4

Please sign in to comment.