Skip to content

Commit

Permalink
Added variable Kv_slow in visc type
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Apr 2, 2018
1 parent 80c33a4 commit 801a86a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/MOM_variables.F90
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ module MOM_variables
!! at the interfaces between each layer, in m2 s-1.
Kv_shear => NULL(), &!< The shear-driven turbulent vertical viscosity
!! at the interfaces between each layer, in m2 s-1.
Kv_slow => NULL(), &!< The turbulent vertical viscosity component due to
!! "slow" processes (e.g., tidal, background,
!! convection etc).
TKE_turb => NULL() !< The turbulent kinetic energy per unit mass defined
!! at the interfaces between each layer, in m2 s-2.
end type vertvisc_type
Expand Down
1 change: 1 addition & 0 deletions src/parameterizations/vertical/MOM_set_viscosity.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,7 @@ subroutine set_visc_register_restarts(HI, GV, param_file, visc, restart_CS)
allocate(visc%Kd_shear(isd:ied,jsd:jed,nz+1)) ; visc%Kd_shear(:,:,:) = 0.0
allocate(visc%TKE_turb(isd:ied,jsd:jed,nz+1)) ; visc%TKE_turb(:,:,:) = 0.0
allocate(visc%Kv_shear(isd:ied,jsd:jed,nz+1)) ; visc%Kv_shear(:,:,:) = 0.0
! GMM, allocate visc%Kv_slow here?

vd = var_desc("Kd_shear","m2 s-1","Shear-driven turbulent diffusivity at interfaces", &
hor_grid='h', z_grid='i')
Expand Down

0 comments on commit 801a86a

Please sign in to comment.