Skip to content

Commit f8ba470

Browse files
committed
Add a new option for net sink treatment: if the elem is dry with a net
sink, the vsource is reset to 0.
1 parent b2a3c8a commit f8ba470

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

cmake/SCHISM.local.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set( USE_MARSH OFF CACHE BOOLEAN "Use marsh module")
2020

2121
# Enable/Disable Modules
2222
set( USE_SED2D OFF CACHE BOOLEAN "Use 2D sediment module")
23-
set( USE_WWM ON CACHE BOOLEAN "Use wind-wave module")
23+
set( USE_WWM OFF CACHE BOOLEAN "Use wind-wave module")
2424
set( USE_ICE OFF CACHE BOOLEAN "Use ICE module")
2525

2626
#Tracer models

src/Core/schism_glbl.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module schism_glbl
9292
&moitn0,mxitn0,nchi,ibtrack_test,nramp_elev,islip,ibtp,inunfl,shorewafo, &
9393
&inv_atm_bnd,ieos_type,ieos_pres,iupwind_mom,inter_mom,ishapiro,isav, &
9494
&nstep_ice,niter_shap,iunder_deep,ibtrack_openbnd,flag_fib,ielm_transport,max_subcyc, &
95-
&itransport_only
95+
&itransport_only,meth_sink
9696
integer,save :: ntrs(natrm),nnu_pts(natrm),mnu_pts
9797
integer,save,dimension(:),allocatable :: iof_hydro,iof_wwm,iof_gen,iof_age,iof_sed,iof_eco, &
9898
&iof_icm,iof_cos,iof_fib,iof_sed2d,iof_ice,iof_ana,iof_marsh,iof_dvd,iadjust_mass_consv

src/Hydro/schism_init.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ subroutine schism_init(iorder,indir,iths,ntime)
184184
&iwbl,cur_wwm,if_source,nramp_ss,dramp_ss,ieos_type,ieos_pres,eos_a,eos_b,slr_rate, &
185185
&rho0,shw,isav,nstep_ice,iunder_deep,h1_bcc,h2_bcc,hw_depth,hw_ratio, &
186186
&ibtrack_openbnd,level_age,vclose_surf_frac,iadjust_mass_consv0,ipre2, &
187-
&ielm_transport,max_subcyc,i_hmin_airsea_ex,hmin_airsea_ex,itransport_only
187+
&ielm_transport,max_subcyc,i_hmin_airsea_ex,hmin_airsea_ex,itransport_only,meth_sink
188188

189189
namelist /SCHOUT/iof_hydro,iof_wwm,iof_gen,iof_age,iof_sed,iof_eco,iof_icm,iof_cos,iof_fib, &
190190
&iof_sed2d,iof_ice,iof_ana,iof_marsh,iof_dvd, &
@@ -463,7 +463,7 @@ subroutine schism_init(iorder,indir,iths,ntime)
463463
ipre2=0
464464
ielm_transport=0; max_subcyc=10
465465
hmin_airsea_ex=0.2_rkind
466-
itransport_only=0
466+
itransport_only=0; meth_sink=0
467467

468468
!Output elev, hvel by detault
469469
iof_hydro=0; iof_wwm=0; iof_gen=0; iof_age=0; iof_sed=0; iof_eco=0; iof_dvd=0

src/Hydro/schism_step.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,11 @@ subroutine schism_step(it)
14571457
endif !impose_net_flux
14581458
endif !isconsv/=0
14591459

1460+
!... Option to zero out net sink @dry elem
1461+
if(meth_sink/=0) then
1462+
where(idry_e==1.and.vsource<0.d0) vsource=0.d0
1463+
endif !meth_sink
1464+
14601465
! Calculation of cross-section areas and length for flow b.c.
14611466
if(lflbc) then
14621467
allocate(buf1(nope_global,2),buf2(nope_global,2)); buf1=0.d0;

0 commit comments

Comments
 (0)