Skip to content

Commit

Permalink
Remove thickness_diffuse_CS from horizontal_viscosity
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Jun 27, 2019
1 parent 2a9d421 commit 1a71a55
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/core/MOM_dynamics_split_RK2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ subroutine step_MOM_dyn_split_RK2(u, v, h, tv, visc, &
! diffu = horizontal viscosity terms (u_av)
call cpu_clock_begin(id_clock_horvisc)
call horizontal_viscosity(u_av, v_av, h_av, CS%diffu, CS%diffv, &
MEKE, Varmix, CS%barotropic_CSp, thickness_diffuse_CSp, &
MEKE, Varmix, CS%barotropic_CSp, &
G, GV, US, CS%hor_visc_CSp, OBC=CS%OBC)
call cpu_clock_end(id_clock_horvisc)
if (showCallTree) call callTree_wayPoint("done with horizontal_viscosity (step_MOM_dyn_split_RK2)")
Expand Down Expand Up @@ -1153,8 +1153,8 @@ subroutine initialize_dyn_split_RK2(u, v, h, uh, vh, eta, Time, G, GV, US, param
if (.not. query_initialized(CS%diffu,"diffu",restart_CS) .or. &
.not. query_initialized(CS%diffv,"diffv",restart_CS)) &
call horizontal_viscosity(u, v, h, CS%diffu, CS%diffv, MEKE, VarMix, &
CS%barotropic_CSp, thickness_diffuse_CSp, &
G, GV, US, CS%hor_visc_CSp, OBC=CS%OBC)
CS%barotropic_CSp, G, GV, US, CS%hor_visc_CSp, &
OBC=CS%OBC)
if (.not. query_initialized(CS%u_av,"u2", restart_CS) .or. &
.not. query_initialized(CS%u_av,"v2", restart_CS)) then
CS%u_av(:,:,:) = u(:,:,:)
Expand Down
2 changes: 1 addition & 1 deletion src/core/MOM_dynamics_unsplit.F90
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ subroutine step_MOM_dyn_unsplit(u, v, h, tv, visc, Time_local, dt, forces, &
call enable_averaging(dt,Time_local, CS%diag)
call cpu_clock_begin(id_clock_horvisc)
call horizontal_viscosity(u, v, h, CS%diffu, CS%diffv, MEKE, Varmix, &
Barotropic, thickness_diffuse, G, GV, US, CS%hor_visc_CSp)
Barotropic, G, GV, US, CS%hor_visc_CSp)
call cpu_clock_end(id_clock_horvisc)
call disable_averaging(CS%diag)

Expand Down
2 changes: 1 addition & 1 deletion src/core/MOM_dynamics_unsplit_RK2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ subroutine step_MOM_dyn_unsplit_RK2(u_in, v_in, h_in, tv, visc, Time_local, dt,
call enable_averaging(dt,Time_local, CS%diag)
call cpu_clock_begin(id_clock_horvisc)
call horizontal_viscosity(u_in, v_in, h_in, CS%diffu, CS%diffv, MEKE, VarMix, &
Barotropic, thickness_diffuse, G, GV, US, CS%hor_visc_CSp)
Barotropic, G, GV, US, CS%hor_visc_CSp)
call cpu_clock_end(id_clock_horvisc)
call disable_averaging(CS%diag)
call pass_vector(CS%diffu, CS%diffv, G%Domain, clock=id_clock_pass)
Expand Down
4 changes: 1 addition & 3 deletions src/parameterizations/lateral/MOM_hor_visc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ module MOM_hor_visc
!! v[is-2:ie+2,js-2:je+2]
!! h[is-1:ie+1,js-1:je+1]
subroutine horizontal_viscosity(u, v, h, diffu, diffv, MEKE, VarMix, Barotropic, &
thickness_diffuse, G, GV, US, CS, OBC)
G, GV, US, CS, OBC)
type(ocean_grid_type), intent(in) :: G !< The ocean's grid structure.
type(verticalGrid_type), intent(in) :: GV !< The ocean's vertical grid structure.
real, dimension(SZIB_(G),SZJ_(G),SZK_(G)), &
Expand All @@ -213,8 +213,6 @@ subroutine horizontal_viscosity(u, v, h, diffu, diffv, MEKE, VarMix, Barotropic,
!! specify the spatially variable viscosities
type(barotropic_CS), pointer :: Barotropic !< Pointer to a structure containing
!! barotropic velocities
type(thickness_diffuse_CS), pointer :: thickness_diffuse !< Pointer to a structure containing
!! interface height diffusivities
type(hor_visc_CS), pointer :: CS !< Control structure returned by a previous
type(unit_scale_type), intent(in) :: US !< A dimensional unit scaling type
!! call to hor_visc_init.
Expand Down

0 comments on commit 1a71a55

Please sign in to comment.