MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
swfmodule Module Reference

Surface Water Flow (SWF) Module.

Data Types

type  swfmodeltype

Functions/Subroutines

subroutine initialize (this, modelftype, filename, id, modelname)
 Initialize common swf members.
subroutine allocate_scalars (this, modelname)
 Allocate memory for scalar members.
subroutine allocate_arrays (this)
 Allocate memory for scalar members.
subroutine swf_df (this)
 Define packages of the model.
subroutine swf_ac (this, sparse)
 Add the internal connections of this model to the sparse matrix.
subroutine swf_mc (this, matrix_sln)
 Map the positions of this models connections in the.
subroutine swf_ar (this)
 SWF Allocate and Read.
subroutine swf_rp (this)
 Surface Water Flow Model Read and Prepare.
subroutine swf_ad (this)
 Surface Water Flow Model Time Step Advance.
subroutine swf_cf (this, kiter)
 Calculate coefficients.
subroutine swf_fc (this, kiter, matrix_sln, inwtflag)
 Fill coefficients.
subroutine swf_nur (this, neqmod, x, xtemp, dx, inewtonur, dxmax, locmax)
 under-relaxation
subroutine swf_cq (this, icnvg, isuppress_output)
 Calculate flow.
subroutine swf_bd (this, icnvg, isuppress_output)
 Model Budget.
subroutine swf_ot (this)
 Surface Water Flow Model Output.
subroutine swf_ot_obs (this)
 Surface Water Flow Model output observations.
subroutine swf_ot_flow (this, icbcfl, ibudfl, icbcun)
 Surface Water Flow Model output flows.
subroutine swf_ot_dv (this, idvsave, idvprint, ipflag)
 Surface Water Flow Model output dependent variable.
subroutine swf_ot_bdsummary (this, ibudfl, ipflag)
 Surface Water Flow Model output budget summary.
subroutine swf_da (this)
 Deallocate.
subroutine swf_bdentry (this, budterm, budtxt, rowlabel)
 Surface Flow Model Budget Entry.
subroutine package_create (this, filtyp, ipakid, ipaknum, pakname, mempath, inunit, iout)
 Create boundary condition packages for this model.
subroutine ftype_check (this, indis)
 Check to make sure required input files have been specified.
subroutine create_bndpkgs (this, bndpkgs, pkgtypes, pkgnames, mempaths, inunits)
 Source package info and begin to process.
subroutine create_packages (this)
 Source package info and begin to process.
subroutine steady_period_check (this)
 Check for steady state period.
integer(i4b) function swf_get_iasym (this)
 return 1 if any package causes the matrix to be asymmetric.

Variables

integer(i4b), parameter swf_nbasepkg = 9
integer(i4b), parameter swf_nmultipkg = 50
integer(i4b), parameter niunit_swf = SWF_NBASEPKG + SWF_NMULTIPKG

Function/Subroutine Documentation

◆ allocate_arrays()

subroutine swfmodule::allocate_arrays ( class(swfmodeltype) this)
private

Definition at line 143 of file swf.f90.

144 ! modules
145 ! dummy
146 class(SwfModelType) :: this
147 integer(I4B) :: i
148
149 ! allocate members from parent class
150 call this%NumericalModelType%allocate_arrays()
151
152 if (this%indfw == 0) then
153 ! explicit model, so these must be manually allocated (not used)
154 call mem_allocate(this%x, this%dis%nodes, 'X', this%memoryPath)
155 call mem_allocate(this%rhs, this%dis%nodes, 'RHS', this%memoryPath)
156 call mem_allocate(this%ibound, this%dis%nodes, 'IBOUND', this%memoryPath)
157 do i = 1, this%dis%nodes
158 this%x(i) = dzero
159 this%rhs(i) = dzero
160 this%ibound(i) = 1
161 end do
162 end if
163

◆ allocate_scalars()

subroutine swfmodule::allocate_scalars ( class(swfmodeltype) this,
character(len=*), intent(in) modelname )
private

Definition at line 110 of file swf.f90.

111 ! modules
112 ! dummy
113 class(SwfModelType) :: this
114 character(len=*), intent(in) :: modelname
115
116 ! allocate members from parent class
117 call this%NumericalModelType%allocate_scalars(modelname)
118
119 ! allocate members that are part of model class
120 call mem_allocate(this%inic, 'INIC', this%memoryPath)
121 call mem_allocate(this%indfw, 'INDFW', this%memoryPath)
122 call mem_allocate(this%incxs, 'INCXS', this%memoryPath)
123 call mem_allocate(this%insto, 'INSTO', this%memoryPath)
124 call mem_allocate(this%inobs, 'INOBS', this%memoryPath)
125 call mem_allocate(this%inoc, 'INOC', this%memoryPath)
126 call mem_allocate(this%iss, 'ISS', this%memoryPath)
127 call mem_allocate(this%inewtonur, 'INEWTONUR', this%memoryPath)
128
129 ! initialize
130 this%inic = 0
131 this%indfw = 0
132 this%incxs = 0
133 this%insto = 0
134 this%inobs = 0
135 this%inoc = 0
136 this%iss = 1 !default is steady-state (i.e., no STO package)
137 this%inewtonur = 0
138

◆ create_bndpkgs()

subroutine swfmodule::create_bndpkgs ( class(swfmodeltype) this,
integer(i4b), dimension(:), intent(inout), allocatable bndpkgs,
type(characterstringtype), dimension(:), intent(inout), pointer, contiguous pkgtypes,
type(characterstringtype), dimension(:), intent(inout), pointer, contiguous pkgnames,
type(characterstringtype), dimension(:), intent(inout), pointer, contiguous mempaths,
integer(i4b), dimension(:), intent(inout), pointer, contiguous inunits )
private

Definition at line 945 of file swf.f90.

947 ! modules
950 ! dummy
951 class(SwfModelType) :: this
952 integer(I4B), dimension(:), allocatable, intent(inout) :: bndpkgs
953 type(CharacterStringType), dimension(:), contiguous, &
954 pointer, intent(inout) :: pkgtypes
955 type(CharacterStringType), dimension(:), contiguous, &
956 pointer, intent(inout) :: pkgnames
957 type(CharacterStringType), dimension(:), contiguous, &
958 pointer, intent(inout) :: mempaths
959 integer(I4B), dimension(:), contiguous, &
960 pointer, intent(inout) :: inunits
961 ! local
962 integer(I4B) :: ipakid, ipaknum
963 character(len=LENFTYPE) :: pkgtype, bndptype
964 character(len=LENPACKAGENAME) :: pkgname
965 character(len=LENMEMPATH) :: mempath
966 integer(I4B), pointer :: inunit
967 integer(I4B) :: n
968
969 if (allocated(bndpkgs)) then
970
971 ! create stress packages
972 ipakid = 1
973 bndptype = ''
974 do n = 1, size(bndpkgs)
975 !
976 pkgtype = pkgtypes(bndpkgs(n))
977 pkgname = pkgnames(bndpkgs(n))
978 mempath = mempaths(bndpkgs(n))
979 inunit => inunits(bndpkgs(n))
980 !
981 if (bndptype /= pkgtype) then
982 ipaknum = 1
983 bndptype = pkgtype
984 end if
985 !
986 call this%package_create(pkgtype, ipakid, ipaknum, pkgname, mempath, &
987 inunit, this%iout)
988 ipakid = ipakid + 1
989 ipaknum = ipaknum + 1
990 end do
991
992 ! cleanup
993 deallocate (bndpkgs)
994 end if
995
This module contains simulation constants.
Definition Constants.f90:9
integer(i4b), parameter lenpackagename
maximum length of the package name
Definition Constants.f90:23
This class is used to store a single deferred-length character string. It was designed to work in an ...

◆ create_packages()

subroutine swfmodule::create_packages ( class(swfmodeltype) this)
private

Definition at line 1000 of file swf.f90.

1001 ! modules
1007 use disv1dmodule, only: disv1d_cr
1008 use dis2dmodule, only: dis2d_cr
1009 use disv2dmodule, only: disv2d_cr
1010 use swfdfwmodule, only: dfw_cr
1011 use swfcxsmodule, only: cxs_cr
1012 use swfstomodule, only: sto_cr
1013 use swficmodule, only: ic_cr
1014 use swfocmodule, only: oc_cr
1015 ! dummy
1016 class(SwfModelType) :: this
1017 ! local
1018 type(CharacterStringType), dimension(:), contiguous, &
1019 pointer :: pkgtypes => null()
1020 type(CharacterStringType), dimension(:), contiguous, &
1021 pointer :: pkgnames => null()
1022 type(CharacterStringType), dimension(:), contiguous, &
1023 pointer :: mempaths => null()
1024 integer(I4B), dimension(:), contiguous, &
1025 pointer :: inunits => null()
1026 character(len=LENMEMPATH) :: model_mempath
1027 character(len=LENPACKAGETYPE) :: pkgtype
1028 character(len=LENPACKAGENAME) :: pkgname
1029 character(len=LENMEMPATH) :: mempath
1030 integer(I4B), pointer :: inunit
1031 integer(I4B), dimension(:), allocatable :: bndpkgs
1032 integer(I4B) :: n
1033 integer(I4B) :: indis = 0 ! DIS enabled flag
1034 character(len=LENMEMPATH) :: mempathic = ''
1035 character(len=LENMEMPATH) :: mempathdfw = ''
1036 character(len=LENMEMPATH) :: mempathcxs = ''
1037 character(len=LENMEMPATH) :: mempathoc = ''
1038 character(len=LENMEMPATH) :: mempathsto = ''
1039
1040 ! set input model memory path
1041 model_mempath = create_mem_path(component=this%name, context=idm_context)
1042
1043 ! set pointers to model path package info
1044 call mem_setptr(pkgtypes, 'PKGTYPES', model_mempath)
1045 call mem_setptr(pkgnames, 'PKGNAMES', model_mempath)
1046 call mem_setptr(mempaths, 'MEMPATHS', model_mempath)
1047 call mem_setptr(inunits, 'INUNITS', model_mempath)
1048
1049 do n = 1, size(pkgtypes)
1050
1051 ! attributes for this input package
1052 pkgtype = pkgtypes(n)
1053 pkgname = pkgnames(n)
1054 mempath = mempaths(n)
1055 inunit => inunits(n)
1056
1057 ! create dis package as it is a prerequisite for other packages
1058 select case (pkgtype)
1059 case ('DISV1D6')
1060 indis = 1
1061 call disv1d_cr(this%dis, this%name, mempath, indis, this%iout)
1062 case ('DIS2D6')
1063 indis = 1
1064 call dis2d_cr(this%dis, this%name, mempath, indis, this%iout)
1065 case ('DISV2D6')
1066 indis = 1
1067 call disv2d_cr(this%dis, this%name, mempath, indis, this%iout)
1068 case ('DFW6')
1069 this%indfw = 1
1070 mempathdfw = mempath
1071 case ('CXS6')
1072 this%incxs = 1
1073 mempathcxs = mempath
1074 case ('STO6')
1075 this%insto = 1
1076 mempathsto = mempath
1077 case ('IC6')
1078 this%inic = 1
1079 mempathic = mempath
1080 case ('OC6')
1081 !this%inoc = inunit
1082 this%inoc = 1
1083 mempathoc = mempath
1084 case ('OBS6')
1085 this%inobs = inunit
1086 case ('CHD6', 'FLW6', 'CDB6', 'ZDG6', 'PCP6', 'EVP6')
1087 call expandarray(bndpkgs)
1088 bndpkgs(size(bndpkgs)) = n
1089 case default
1090 ! TODO
1091 end select
1092 end do
1093
1094 ! Create packages that are tied directly to model
1095 if (this%inic > 0) then
1096 call ic_cr(this%ic, this%name, mempathic, this%inic, this%iout, &
1097 this%dis)
1098 end if
1099 call cxs_cr(this%cxs, this%name, mempathcxs, this%incxs, this%iout, &
1100 this%dis)
1101 if (this%indfw > 0) then
1102 call dfw_cr(this%dfw, this%name, mempathdfw, this%indfw, this%iout, &
1103 this%cxs)
1104 end if
1105 if (this%insto > 0) then
1106 call sto_cr(this%sto, this%name, mempathsto, this%insto, this%iout, &
1107 this%cxs)
1108 end if
1109 call oc_cr(this%oc, this%name, mempathoc, this%inoc, this%iout)
1110 call swf_obs_cr(this%obs, this%inobs)
1111
1112 ! Check to make sure that required ftype's have been specified
1113 call this%ftype_check(indis)
1114
1115 call this%create_bndpkgs(bndpkgs, pkgtypes, pkgnames, mempaths, inunits)
1116
integer(i4b), parameter linelength
maximum length of a standard line
Definition Constants.f90:45
subroutine, public dis2d_cr(dis, name_model, input_mempath, inunit, iout)
Create a new structured discretization object.
Definition Dis2d.f90:94
subroutine, public disv1d_cr(dis, name_model, input_mempath, inunit, iout)
Definition Disv1d.f90:90
subroutine, public disv2d_cr(dis, name_model, input_mempath, inunit, iout)
Create a new discretization by vertices object.
Definition Disv2d.f90:98
This module contains simulation variables.
character(len=linelength) idm_context
subroutine, public cxs_cr(pobj, name_model, input_mempath, inunit, iout, dis)
create package
Definition swf-cxs.f90:91
subroutine, public ic_cr(ic, name_model, input_mempath, inunit, iout, dis)
Create a new initial conditions object.
Definition swf-ic.f90:32
subroutine, public oc_cr(ocobj, name_model, input_mempath, inunit, iout)
Create SwfOcType.
Definition swf-oc.f90:30
This module contains the storage package methods.
Definition swf-sto.f90:7
subroutine, public sto_cr(stoobj, name_model, mempath, inunit, iout, cxs)
Create a new package object.
Definition swf-sto.f90:76
subroutine dfw_cr(dfwobj, name_model, input_mempath, inunit, iout, cxs)
create package
Definition swf-dfw.f90:128
Here is the call graph for this function:

◆ ftype_check()

subroutine swfmodule::ftype_check ( class(swfmodeltype) this,
integer(i4b), intent(in) indis )
private

Definition at line 901 of file swf.f90.

902 ! modules
903 ! dummy
904 class(SwfModelType) :: this
905 integer(I4B), intent(in) :: indis
906 ! local
907
908 ! Check for required packages. Stop if not present.
909 if (indis == 0) then
910 write (errmsg, '(a)') &
911 'Discretization Package (DISV1D6 or DIS2D6) not specified.'
912 call store_error(errmsg)
913 end if
914 if (this%inic == 0 .and. this%indfw /= 0) then
915 write (errmsg, '(a)') &
916 'Initial Conditions (IC6) must be specified if the Diffusive &
917 &Wave (DFW) package is used.'
918 call store_error(errmsg)
919 end if
920 if (this%indfw == 0) then
921 write (errmsg, '(1x,a)') &
922 'DFW6 Package must be specified.'
923 call store_error(errmsg)
924 end if
925 if (this%incxs > 0) then
926 if (this%dis%ndim /= 1) then
927 write (errmsg, '(1x,a)') &
928 'CXS6 Package can only be used for one-dimensional discretization &
929 &package (DISV1D). Remove CXS6 Package from model or convert &
930 &discretization package to DISV1D.'
931 call store_error(errmsg)
932 end if
933 end if
934 if (count_errors() > 0) then
935 write (errmsg, '(a)') 'One or more required package(s) not specified &
936 &and/or there are package incompatibilities.'
937 call store_error(errmsg)
938 call store_error_filename(this%filename)
939 end if
940
Here is the call graph for this function:

◆ initialize()

subroutine swfmodule::initialize ( class(swfmodeltype) this,
character(len=*), intent(in) modelftype,
character(len=*), intent(in) filename,
integer(i4b), intent(in) id,
character(len=*), intent(in) modelname )
private
Parameters
[in]modelftypeabbreviation for model type (CHF or OLF)
[in]filenameinput file
[in]idconsecutive model number listed in mfsim.nam
[in]modelnamename of the model

Definition at line 84 of file swf.f90.

85 ! modules
86 ! dummy
87 class(SwfModelType) :: this
88 character(len=*), intent(in) :: modelftype !< abbreviation for model type (CHF or OLF)
89 character(len=*), intent(in) :: filename !< input file
90 integer(I4B), intent(in) :: id !< consecutive model number listed in mfsim.nam
91 character(len=*), intent(in) :: modelname !< name of the model
92 ! local
93
94 ! Set memory path before allocation in memory manager can be done
95 this%memoryPath = create_mem_path(modelname)
96
97 ! allocate scalars
98 call this%allocate_scalars(modelname)
99
100 ! Assign values
101 this%filename = filename
102 this%name = modelname
103 this%macronym = trim(modelftype)
104 this%id = id
105
Here is the call graph for this function:

◆ package_create()

subroutine swfmodule::package_create ( class(swfmodeltype) this,
character(len=*), intent(in) filtyp,
integer(i4b), intent(in) ipakid,
integer(i4b), intent(in) ipaknum,
character(len=*), intent(in) pakname,
character(len=*), intent(in) mempath,
integer(i4b), intent(in) inunit,
integer(i4b), intent(in) iout )
private

Definition at line 833 of file swf.f90.

835 ! modules
836 use swfflwmodule, only: flw_create
837 use chdmodule, only: chd_create
838 use swfcdbmodule, only: cdb_create
839 use swfzdgmodule, only: zdg_create
840 use swfpcpmodule, only: pcp_create
841 use swfevpmodule, only: evp_create
842 ! dummy
843 class(SwfModelType) :: this
844 character(len=*), intent(in) :: filtyp
845 integer(I4B), intent(in) :: ipakid
846 integer(I4B), intent(in) :: ipaknum
847 character(len=*), intent(in) :: pakname
848 character(len=*), intent(in) :: mempath
849 integer(I4B), intent(in) :: inunit
850 integer(I4B), intent(in) :: iout
851 ! local
852 class(BndType), pointer :: packobj
853 class(BndType), pointer :: packobj2
854 integer(I4B) :: ip
855
856 ! This part creates the package object
857 select case (filtyp)
858 case ('FLW6')
859 call flw_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
860 pakname, mempath)
861 packobj%ictMemPath = ''
862 case ('CHD6')
863 call chd_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
864 pakname, mempath)
865 packobj%ictMemPath = create_mem_path(this%name, 'DFW')
866 case ('CDB6')
867 call cdb_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
868 pakname, mempath, this%dis, this%cxs, &
869 this%dfw%lengthconv, this%dfw%timeconv)
870 case ('ZDG6')
871 call zdg_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
872 pakname, mempath, this%dis, this%cxs, this%dfw%unitconv)
873 case ('PCP6')
874 call pcp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
875 pakname, mempath, this%dis, this%dfw, this%cxs)
876 case ('EVP6')
877 call evp_create(packobj, ipakid, ipaknum, inunit, iout, this%name, &
878 pakname, mempath, this%dis, this%dfw, this%cxs)
879 case default
880 write (errmsg, *) 'Invalid package type: ', filtyp
881 call store_error(errmsg)
882 call store_error_filename(this%filename)
883 end select
884
885 ! Check to make sure that the package name is unique, then store a
886 ! pointer to the package in the model bndlist
887 do ip = 1, this%bndlist%Count()
888 packobj2 => getbndfromlist(this%bndlist, ip)
889 if (packobj2%packName == pakname) then
890 write (errmsg, '(a,a)') 'Cannot create package. Package name '// &
891 'already exists: ', trim(pakname)
892 call store_error(errmsg, terminate=.true.)
893 end if
894 end do
895 call addbndtolist(this%bndlist, packobj)
896
subroutine, public chd_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath)
Create a new constant head package.
Definition gwf-chd.f90:56
This module contains the CDB package methods.
Definition swf-cdb.f90:7
subroutine, public cdb_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, cxs, lengthconv, timeconv)
Create a new package object.
Definition swf-cdb.f90:71
This module contains the evaporation (EVP) package methods.
Definition swf-evp.f90:6
subroutine, public evp_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, dfw, cxs)
Create a Evaporation Package.
Definition swf-evp.f90:80
This module contains the FLW package methods.
Definition swf-flw.f90:7
subroutine, public flw_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath)
Create a new package object.
Definition swf-flw.f90:59
This module contains the precipitation (PCP) package methods.
Definition swf-pcp.f90:6
subroutine, public pcp_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, dfw, cxs)
Create a Precipitation Package.
Definition swf-pcp.f90:73
This module contains the ZDG package methods.
Definition swf-zdg.f90:7
subroutine, public zdg_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, mempath, dis, cxs, unitconv)
Create a new package object.
Definition swf-zdg.f90:74
Here is the call graph for this function:

◆ steady_period_check()

subroutine swfmodule::steady_period_check ( class(swfmodeltype) this)
private

Write warning message if steady state period and adaptive time stepping is

Definition at line 1124 of file swf.f90.

1125 ! modules
1126 use tdismodule, only: kper, ats
1127 use simvariablesmodule, only: warnmsg
1128 use simmodule, only: store_warning
1129 ! dummy
1130 class(SwfModelType) :: this
1131
1132 if (this%iss == 1) then
1133 if (ats%isAdaptivePeriod(kper)) then
1134 write (warnmsg, '(a,a,a,i0,a)') &
1135 'SWF Model (', trim(this%name), ') is steady state for period ', &
1136 kper, ' and adaptive time stepping is active. Adaptive time &
1137 &stepping may not work properly for steady-state conditions.'
1139 end if
1140 end if
1141
This module contains simulation methods.
Definition Sim.f90:10
subroutine, public store_warning(msg, substring)
Store warning message.
Definition Sim.f90:241
character(len=maxcharlen) warnmsg
warning message string
class(atstype), pointer, public ats
Definition tdis.f90:48
integer(i4b), pointer, public kper
current stress period number
Definition tdis.f90:26
Here is the call graph for this function:

◆ swf_ac()

subroutine swfmodule::swf_ac ( class(swfmodeltype) this,
type(sparsematrix), intent(inout) sparse )
private

Definition at line 204 of file swf.f90.

205 ! modules
206 use sparsemodule, only: sparsematrix
207 ! dummy
208 class(SwfModelType) :: this
209 type(sparsematrix), intent(inout) :: sparse
210 ! local
211 class(BndType), pointer :: packobj
212 integer(I4B) :: ip
213
214 ! Add the primary grid connections of this model to sparse
215 call this%dis%dis_ac(this%moffset, sparse)
216
217 ! Add any additional connections
218 ! none
219
220 ! Add any package connections
221 do ip = 1, this%bndlist%Count()
222 packobj => getbndfromlist(this%bndlist, ip)
223 call packobj%bnd_ac(this%moffset, sparse)
224 end do
225
Here is the call graph for this function:

◆ swf_ad()

subroutine swfmodule::swf_ad ( class(swfmodeltype) this)
private

Definition at line 327 of file swf.f90.

328 ! modules
330 ! dummy
331 class(SwfModelType) :: this
332 class(BndType), pointer :: packobj
333 ! local
334 integer(I4B) :: irestore
335 integer(I4B) :: ip, n
336
337 ! Reset state variable
338 irestore = 0
339 if (ifailedstepretry > 0) irestore = 1
340 if (irestore == 0) then
341
342 ! copy x into xold
343 do n = 1, this%dis%nodes
344 this%xold(n) = this%x(n)
345 end do
346 else
347
348 ! copy xold into x if this time step is a redo
349 do n = 1, this%dis%nodes
350 this%x(n) = this%xold(n)
351 end do
352 end if
353
354 ! Advance
355 if (this%indfw > 0) call this%dfw%dfw_ad(irestore)
356 if (this%insto > 0) call this%sto%sto_ad()
357 !if (this%inmvr > 0) call this%mvr%mvr_ad()
358 do ip = 1, this%bndlist%Count()
359 packobj => getbndfromlist(this%bndlist, ip)
360 call packobj%bnd_ad()
361 if (isimcheck > 0) then
362 call packobj%bnd_ck()
363 end if
364 end do
365
366 ! Push simulated values to preceding time/subtime step
367 call this%obs%obs_ad()
368
integer(i4b) isimcheck
simulation input check flag (1) to check input, (0) to ignore checks
integer(i4b) ifailedstepretry
current retry for this time step
Here is the call graph for this function:

◆ swf_ar()

subroutine swfmodule::swf_ar ( class(swfmodeltype) this)
private

Definition at line 255 of file swf.f90.

256 ! dummy
257 class(SwfModelType) :: this
258 ! locals
259 integer(I4B), dimension(:), allocatable :: itemp
260 integer(I4B) :: ip
261 class(BndType), pointer :: packobj
262
263 ! Allocate and read modules attached to model
264 if (this%inic > 0) call this%ic%ic_ar(this%x)
265
266 ! need temporary integer variable to pass to dis_ar
267 ! TODO: this should be generalized so dis_ar doesn't have to have it
268 allocate (itemp(this%dis%nodes))
269
270 ! Call dis_ar to write binary grid file
271 call this%dis%dis_ar(itemp)
272 if (this%indfw > 0) call this%dfw%dfw_ar(this%ibound, this%x)
273 if (this%insto > 0) call this%sto%sto_ar(this%dis, this%ibound)
274 if (this%inobs > 0) call this%obs%swf_obs_ar(this%ic, this%x, this%flowja)
275 deallocate (itemp)
276
277 ! set up output control
278 if (this%indfw > 0) then
279 call this%oc%oc_ar(this%x, this%dis, dnodata)
280 end if
281 call this%budget%set_ibudcsv(this%oc%ibudcsv)
282
283 ! Package input files now open, so allocate and read
284 do ip = 1, this%bndlist%Count()
285 packobj => getbndfromlist(this%bndlist, ip)
286 call packobj%set_pointers(this%dis%nodes, this%ibound, this%x, &
287 this%xold, this%flowja)
288 ! Read and allocate package
289 call packobj%bnd_ar()
290 end do
291
Here is the call graph for this function:

◆ swf_bd()

subroutine swfmodule::swf_bd ( class(swfmodeltype) this,
integer(i4b), intent(in) icnvg,
integer(i4b), intent(in) isuppress_output )
private

Definition at line 536 of file swf.f90.

537 ! modules
538 use sparsemodule, only: csr_diagsum
539 ! dummy
540 class(SwfModelType) :: this
541 integer(I4B), intent(in) :: icnvg
542 integer(I4B), intent(in) :: isuppress_output
543 ! local
544 integer(I4B) :: ip
545 class(BndType), pointer :: packobj
546
547 ! Finalize calculation of flowja by adding face flows to the diagonal.
548 ! This results in the flow residual being stored in the diagonal
549 ! position for each cell.
550 call csr_diagsum(this%dis%con%ia, this%flowja)
551
552 ! Budget routines (start by resetting). Sole purpose of this section
553 ! is to add in and outs to model budget. All ins and out for a model
554 ! should be added here to this%budget. In a subsequent exchange call,
555 ! exchange flows might also be added.
556 call this%budget%reset()
557 if (this%insto > 0) call this%sto%sto_bd(isuppress_output, this%budget)
558 if (this%indfw > 0) call this%dfw%dfw_bd(isuppress_output, this%budget)
559 do ip = 1, this%bndlist%Count()
560 packobj => getbndfromlist(this%bndlist, ip)
561 call packobj%bnd_bd(this%budget)
562 end do
563
564 ! dfw velocities have to be calculated here, after swf-swf exchanges
565 ! have passed in their contributions from exg_cq()
566 if (this%indfw > 0) then
567 if (this%dfw%icalcvelocity /= 0) then
568 call this%dfw%calc_velocity(this%flowja)
569 end if
570 end if
571
subroutine csr_diagsum(ia, flowja)
Definition Sparse.f90:263
Here is the call graph for this function:

◆ swf_bdentry()

subroutine swfmodule::swf_bdentry ( class(swfmodeltype) this,
real(dp), dimension(:, :), intent(in) budterm,
character(len=lenbudtxt), dimension(:), intent(in) budtxt,
character(len=*), intent(in) rowlabel )
private

This subroutine adds a budget entry to the flow budget. It was added as a method for the swf model object so that the exchange object could add its

Definition at line 817 of file swf.f90.

818 ! modules
819 use constantsmodule, only: lenbudtxt
820 use tdismodule, only: delt
821 ! dummy
822 class(SwfModelType) :: this
823 real(DP), dimension(:, :), intent(in) :: budterm
824 character(len=LENBUDTXT), dimension(:), intent(in) :: budtxt
825 character(len=*), intent(in) :: rowlabel
826
827 call this%budget%addentry(budterm, delt, budtxt, rowlabel=rowlabel)
828
integer(i4b), parameter lenbudtxt
maximum length of a budget component names
Definition Constants.f90:37
real(dp), pointer, public delt
length of the current time step
Definition tdis.f90:32

◆ swf_cf()

subroutine swfmodule::swf_cf ( class(swfmodeltype) this,
integer(i4b), intent(in) kiter )
private

Definition at line 373 of file swf.f90.

374 ! dummy
375 class(SwfModelType) :: this
376 integer(I4B), intent(in) :: kiter
377 ! local
378 class(BndType), pointer :: packobj
379 integer(I4B) :: ip
380
381 ! Call package cf routines
382 !if (this%indfw > 0) call this%dfw%dfw_cf(kiter, this%dis%nodes, this%x)
383 do ip = 1, this%bndlist%Count()
384 packobj => getbndfromlist(this%bndlist, ip)
385 call packobj%bnd_cf()
386 end do
387
Here is the call graph for this function:

◆ swf_cq()

subroutine swfmodule::swf_cq ( class(swfmodeltype) this,
integer(i4b), intent(in) icnvg,
integer(i4b), intent(in) isuppress_output )
private

Definition at line 501 of file swf.f90.

502 ! modules
503 ! dummy
504 class(SwfModelType) :: this
505 integer(I4B), intent(in) :: icnvg
506 integer(I4B), intent(in) :: isuppress_output
507 ! local
508 integer(I4B) :: i
509 integer(I4B) :: ip
510 class(BndType), pointer :: packobj
511
512 ! Construct the flowja array. Flowja is calculated each time, even if
513 ! output is suppressed. (flowja is positive into a cell.) The diagonal
514 ! position of the flowja array will contain the flow residual after
515 ! these routines are called, so each package is responsible for adding
516 ! its flow to this diagonal position.
517 do i = 1, this%dis%nja
518 this%flowja(i) = dzero
519 end do
520 if (this%indfw > 0) call this%dfw%dfw_cq(this%x, this%xold, this%flowja)
521 if (this%insto > 0) call this%sto%sto_cq(this%flowja, this%x, this%xold)
522
523 ! Go through packages and call cq routines. cf() routines are called
524 ! first to regenerate non-linear terms to be consistent with the final
525 ! head solution.
526 do ip = 1, this%bndlist%Count()
527 packobj => getbndfromlist(this%bndlist, ip)
528 call packobj%bnd_cf()
529 call packobj%bnd_cq(this%x, this%flowja)
530 end do
531
Here is the call graph for this function:

◆ swf_da()

subroutine swfmodule::swf_da ( class(swfmodeltype) this)
private

Definition at line 757 of file swf.f90.

758 ! modules
762 ! dummy
763 class(SwfModelType) :: this
764 ! local
765 integer(I4B) :: ip
766 class(BndType), pointer :: packobj
767
768 ! Deallocate idm memory
769 call memorystore_remove(this%name, 'NAM', idm_context)
770 call memorystore_remove(component=this%name, context=idm_context)
771
772 ! Internal flow packages deallocate
773 call this%dis%dis_da()
774 if (this%insto > 0) call this%sto%sto_da()
775 if (this%inic > 0) call this%ic%ic_da()
776 if (this%indfw > 0) call this%dfw%dfw_da()
777 call this%cxs%cxs_da()
778 call this%obs%obs_da()
779 call this%oc%oc_da()
780 call this%budget%budget_da()
781
782 ! Internal package objects
783 deallocate (this%dis)
784 deallocate (this%budget)
785 deallocate (this%obs)
786 deallocate (this%oc)
787
788 ! Boundary packages
789 do ip = 1, this%bndlist%Count()
790 packobj => getbndfromlist(this%bndlist, ip)
791 call packobj%bnd_da()
792 deallocate (packobj)
793 end do
794
795 ! Scalars
796 call mem_deallocate(this%inic)
797 call mem_deallocate(this%indfw)
798 call mem_deallocate(this%incxs)
799 call mem_deallocate(this%insto)
800 call mem_deallocate(this%inobs)
801 call mem_deallocate(this%inoc)
802 call mem_deallocate(this%iss)
803 call mem_deallocate(this%inewtonur)
804
805 ! Arrays
806
807 ! NumericalModelType
808 call this%NumericalModelType%model_da()
809
subroutine, public memorystore_remove(component, subcomponent, context)
Here is the call graph for this function:

◆ swf_df()

subroutine swfmodule::swf_df ( class(swfmodeltype) this)
private

Definition at line 168 of file swf.f90.

169 ! modules
170 ! dummy
171 class(SwfModelType) :: this
172 ! local
173 integer(I4B) :: ip
174 class(BndType), pointer :: packobj
175
176 ! call package df routines
177 call this%dis%dis_df()
178 call this%dfw%dfw_df(this%dis)
179 call this%oc%oc_df()
180 call this%budget%budget_df(niunit_swf, 'VOLUME', 'L**3')
181
182 ! set model sizes
183 this%neq = this%dis%nodes
184 this%nja = this%dis%nja
185 this%ia => this%dis%con%ia
186 this%ja => this%dis%con%ja
187
188 ! Allocate model arrays, now that neq and nja are known
189 call this%allocate_arrays()
190
191 ! Define packages and assign iout for time series managers
192 do ip = 1, this%bndlist%Count()
193 packobj => getbndfromlist(this%bndlist, ip)
194 call packobj%bnd_df(this%dis%nodes, this%dis)
195 end do
196
197 ! Store information needed for observations
198 call this%obs%obs_df(this%iout, this%name, 'SWF', this%dis)
199
Here is the call graph for this function:

◆ swf_fc()

subroutine swfmodule::swf_fc ( class(swfmodeltype) this,
integer(i4b), intent(in) kiter,
class(matrixbasetype), pointer matrix_sln,
integer(i4b), intent(in) inwtflag )
private

Definition at line 392 of file swf.f90.

393 ! dummy
394 class(SwfModelType) :: this
395 integer(I4B), intent(in) :: kiter
396 class(MatrixBaseType), pointer :: matrix_sln
397 integer(I4B), intent(in) :: inwtflag
398 ! local
399 class(BndType), pointer :: packobj
400 integer(I4B) :: ip
401 integer(I4B) :: inwt, inwtpak
402
403 ! newton flags
404 inwt = inwtflag
405 ! if (inwtflag == 1) inwt = this%dfw%inewton
406 ! inwtsto = inwtflag
407 ! if (this%insto > 0) then
408 ! if (inwtflag == 1) inwtsto = this%sto%inewton
409 ! end if
410 ! inwtcsub = inwtflag
411 ! if (this%incsub > 0) then
412 ! if (inwtflag == 1) inwtcsub = this%csub%inewton
413 ! end if
414
415 ! Fill standard conductance terms
416 if (this%indfw > 0) call this%dfw%dfw_fc(kiter, matrix_sln, this%idxglo, &
417 this%rhs, this%x, this%xold)
418 ! storage
419 if (this%insto > 0) then
420 call this%sto%sto_fc(kiter, this%xold, this%x, matrix_sln, &
421 this%idxglo, this%rhs)
422 end if
423 ! if (this%inmvr > 0) call this%mvr%mvr_fc()
424 do ip = 1, this%bndlist%Count()
425 packobj => getbndfromlist(this%bndlist, ip)
426 call packobj%bnd_fc(this%rhs, this%ia, this%idxglo, matrix_sln)
427 end do
428
429 !--Fill newton terms
430 if (this%indfw > 0) then
431 if (inwt /= 0) then
432 call this%dfw%dfw_fn(kiter, matrix_sln, this%idxglo, this%rhs, this%x)
433 end if
434 end if
435
436 ! Fill newton terms for storage
437 ! if (this%insto > 0) then
438 ! if (inwtsto /= 0) then
439 ! call this%sto%sto_fn(kiter, this%xold, this%x, matrix_sln, &
440 ! this%idxglo, this%rhs)
441 ! end if
442 ! end if
443
444 ! Fill Newton terms for packages
445 do ip = 1, this%bndlist%Count()
446 packobj => getbndfromlist(this%bndlist, ip)
447 inwtpak = inwtflag
448 if (inwtflag == 1) inwtpak = packobj%inewton
449 if (inwtpak /= 0) then
450 call packobj%bnd_fn(this%rhs, this%ia, this%idxglo, matrix_sln)
451 end if
452 end do
453
Here is the call graph for this function:

◆ swf_get_iasym()

integer(i4b) function swfmodule::swf_get_iasym ( class(swfmodeltype) this)
private

Definition at line 1146 of file swf.f90.

1147 class(SwfModelType) :: this
1148 ! local
1149 integer(I4B) :: iasym
1150 integer(I4B) :: ip
1151 class(BndType), pointer :: packobj
1152
1153 ! Start by setting iasym to zero
1154 iasym = 0
1155
1156 ! DFW
1157 if (this%indfw > 0) then
1158 iasym = 1
1159 end if
1160
1161 ! Check for any packages that introduce matrix asymmetry
1162 do ip = 1, this%bndlist%Count()
1163 packobj => getbndfromlist(this%bndlist, ip)
1164 if (packobj%iasym /= 0) iasym = 1
1165 end do
1166
Here is the call graph for this function:

◆ swf_mc()

subroutine swfmodule::swf_mc ( class(swfmodeltype) this,
class(matrixbasetype), pointer matrix_sln )
private

Definition at line 230 of file swf.f90.

231 ! dummy
232 class(SwfModelType) :: this
233 class(MatrixBaseType), pointer :: matrix_sln
234 ! local
235 class(BndType), pointer :: packobj
236 integer(I4B) :: ip
237
238 ! Find the position of each connection in the global ia, ja structure
239 ! and store them in idxglo.
240 call this%dis%dis_mc(this%moffset, this%idxglo, matrix_sln)
241
242 ! Map any additional connections
243 ! none
244
245 ! Map any package connections
246 do ip = 1, this%bndlist%Count()
247 packobj => getbndfromlist(this%bndlist, ip)
248 call packobj%bnd_mc(this%moffset, matrix_sln)
249 end do
250
Here is the call graph for this function:

◆ swf_nur()

subroutine swfmodule::swf_nur ( class(swfmodeltype) this,
integer(i4b), intent(in) neqmod,
real(dp), dimension(neqmod), intent(inout) x,
real(dp), dimension(neqmod), intent(in) xtemp,
real(dp), dimension(neqmod), intent(inout) dx,
integer(i4b), intent(inout) inewtonur,
real(dp), intent(inout) dxmax,
integer(i4b), intent(inout) locmax )
private

Definition at line 458 of file swf.f90.

459 ! modules
460 use constantsmodule, only: done, dp9
461 ! dummy
462 class(SwfModelType) :: this
463 integer(I4B), intent(in) :: neqmod
464 real(DP), dimension(neqmod), intent(inout) :: x
465 real(DP), dimension(neqmod), intent(in) :: xtemp
466 real(DP), dimension(neqmod), intent(inout) :: dx
467 integer(I4B), intent(inout) :: inewtonur
468 real(DP), intent(inout) :: dxmax
469 integer(I4B), intent(inout) :: locmax
470 ! local
471 integer(I4B) :: i0
472 integer(I4B) :: i1
473 class(BndType), pointer :: packobj
474 integer(I4B) :: ip
475
476 ! apply Newton-Raphson under-relaxation if model is using
477 ! the Newton-Raphson formulation and this Newton-Raphson
478 ! under-relaxation is turned on.
479 if (this%inewton /= 0 .and. this%inewtonur /= 0) then
480 if (this%indfw > 0) then
481 call this%dfw%dfw_nur(neqmod, x, xtemp, dx, inewtonur, dxmax, locmax)
482 end if
483
484 ! Call package nur routines
485 i0 = this%dis%nodes + 1
486 do ip = 1, this%bndlist%Count()
487 packobj => getbndfromlist(this%bndlist, ip)
488 if (packobj%npakeq > 0) then
489 i1 = i0 + packobj%npakeq - 1
490 call packobj%bnd_nur(packobj%npakeq, x(i0:i1), xtemp(i0:i1), &
491 dx(i0:i1), inewtonur, dxmax, locmax)
492 i0 = i1 + 1
493 end if
494 end do
495 end if
496
real(dp), parameter dp9
real constant 9/10
Definition Constants.f90:72
real(dp), parameter done
real constant 1
Definition Constants.f90:76
Here is the call graph for this function:

◆ swf_ot()

subroutine swfmodule::swf_ot ( class(swfmodeltype) this)
private

Definition at line 576 of file swf.f90.

577 ! modules
578 use tdismodule, only: tdis_ot, endofperiod
579 ! dummy
580 class(SwfModelType) :: this
581 ! local
582 integer(I4B) :: idvsave
583 integer(I4B) :: idvprint
584 integer(I4B) :: icbcfl
585 integer(I4B) :: icbcun
586 integer(I4B) :: ibudfl
587 integer(I4B) :: ipflag
588 integer(I4B) :: icnvg = 1
589
590 ! Set write and print flags
591 idvsave = 0
592 idvprint = 0
593 icbcfl = 0
594 ibudfl = 0
595 if (this%oc%oc_save('QOUTFLOW')) idvsave = 1
596 if (this%oc%oc_print('QOUTFLOW')) idvprint = 1
597 if (this%oc%oc_save('BUDGET')) icbcfl = 1
598 if (this%oc%oc_print('BUDGET')) ibudfl = 1
599 icbcun = this%oc%oc_save_unit('BUDGET')
600
601 ! Override ibudfl and idvprint flags for nonconvergence
602 ! and end of period
603 ibudfl = this%oc%set_print_flag('BUDGET', icnvg, endofperiod)
604 idvprint = this%oc%set_print_flag('QOUTFLOW', icnvg, endofperiod)
605
606 ! Calculate and save observations
607 call this%swf_ot_obs()
608
609 ! Save and print flows
610 call this%swf_ot_flow(icbcfl, ibudfl, icbcun)
611
612 ! Save and print dependent variables
613 call this%swf_ot_dv(idvsave, idvprint, ipflag)
614
615 ! Print budget summaries
616 call this%swf_ot_bdsummary(ibudfl, ipflag)
617
618 ! Timing Output; if any dependent variables or budgets
619 ! are printed, then ipflag is set to 1.
620 if (ipflag == 1) call tdis_ot(this%iout)
621
logical(lgp), pointer, public endofperiod
flag indicating end of stress period
Definition tdis.f90:30
subroutine, public tdis_ot(iout)
Print simulation time.
Definition tdis.f90:274
Here is the call graph for this function:

◆ swf_ot_bdsummary()

subroutine swfmodule::swf_ot_bdsummary ( class(swfmodeltype) this,
integer(i4b), intent(in) ibudfl,
integer(i4b), intent(inout) ipflag )
private

Definition at line 724 of file swf.f90.

725 use tdismodule, only: kstp, kper, totim, delt
726 class(SwfModelType) :: this
727 integer(I4B), intent(in) :: ibudfl
728 integer(I4B), intent(inout) :: ipflag
729 class(BndType), pointer :: packobj
730 integer(I4B) :: ip
731
732 ! Package budget summary
733 do ip = 1, this%bndlist%Count()
734 packobj => getbndfromlist(this%bndlist, ip)
735 call packobj%bnd_ot_bdsummary(kstp, kper, this%iout, ibudfl)
736 end do
737
738 ! mover budget summary
739 ! if (this%inmvr > 0) then
740 ! call this%mvr%mvr_ot_bdsummary(ibudfl)
741 ! end if
742
743 ! model budget summary
744 call this%budget%finalize_step(delt)
745 if (ibudfl /= 0) then
746 ipflag = 1
747 call this%budget%budget_ot(kstp, kper, this%iout)
748 end if
749
750 ! Write to budget csv every time step
751 call this%budget%writecsv(totim)
752
real(dp), pointer, public totim
time relative to start of simulation
Definition tdis.f90:35
integer(i4b), pointer, public kstp
current time step number
Definition tdis.f90:27
Here is the call graph for this function:

◆ swf_ot_dv()

subroutine swfmodule::swf_ot_dv ( class(swfmodeltype) this,
integer(i4b), intent(in) idvsave,
integer(i4b), intent(in) idvprint,
integer(i4b), intent(inout) ipflag )
private

Definition at line 703 of file swf.f90.

704 class(SwfModelType) :: this
705 integer(I4B), intent(in) :: idvsave
706 integer(I4B), intent(in) :: idvprint
707 integer(I4B), intent(inout) :: ipflag
708 class(BndType), pointer :: packobj
709 integer(I4B) :: ip
710
711 ! Print advanced package dependent variables
712 do ip = 1, this%bndlist%Count()
713 packobj => getbndfromlist(this%bndlist, ip)
714 call packobj%bnd_ot_dv(idvsave, idvprint)
715 end do
716 !
717 ! save stage and print stage (if implemented)
718 call this%oc%oc_ot(ipflag)
719
Here is the call graph for this function:

◆ swf_ot_flow()

subroutine swfmodule::swf_ot_flow ( class(swfmodeltype) this,
integer(i4b), intent(in) icbcfl,
integer(i4b), intent(in) ibudfl,
integer(i4b), intent(in) icbcun )
private

Definition at line 652 of file swf.f90.

653 class(SwfModelType) :: this
654 integer(I4B), intent(in) :: icbcfl
655 integer(I4B), intent(in) :: ibudfl
656 integer(I4B), intent(in) :: icbcun
657 class(BndType), pointer :: packobj
658 integer(I4B) :: ip
659
660 ! Save SWF flows
661 if (this%insto > 0) then
662 call this%sto%sto_save_model_flows(icbcfl, icbcun)
663 end if
664 if (this%indfw > 0) then
665 call this%dfw%dfw_save_model_flows(this%flowja, icbcfl, icbcun)
666 end if
667 do ip = 1, this%bndlist%Count()
668 packobj => getbndfromlist(this%bndlist, ip)
669 call packobj%bnd_ot_model_flows(icbcfl=icbcfl, ibudfl=0, icbcun=icbcun)
670 end do
671
672 ! Save advanced package flows
673 do ip = 1, this%bndlist%Count()
674 packobj => getbndfromlist(this%bndlist, ip)
675 call packobj%bnd_ot_package_flows(icbcfl=icbcfl, ibudfl=0)
676 end do
677 ! if (this%inmvr > 0) then
678 ! call this%mvr%mvr_ot_saveflow(icbcfl, ibudfl)
679 ! end if
680
681 ! Print SWF flows
682 if (this%indfw > 0) then
683 call this%dfw%dfw_print_model_flows(ibudfl, this%flowja)
684 end if
685 do ip = 1, this%bndlist%Count()
686 packobj => getbndfromlist(this%bndlist, ip)
687 call packobj%bnd_ot_model_flows(icbcfl=icbcfl, ibudfl=ibudfl, icbcun=0)
688 end do
689
690 ! Print advanced package flows
691 do ip = 1, this%bndlist%Count()
692 packobj => getbndfromlist(this%bndlist, ip)
693 call packobj%bnd_ot_package_flows(icbcfl=0, ibudfl=ibudfl)
694 end do
695 ! if (this%inmvr > 0) then
696 ! call this%mvr%mvr_ot_printflow(icbcfl, ibudfl)
697 ! end if
698
Here is the call graph for this function:

◆ swf_ot_obs()

subroutine swfmodule::swf_ot_obs ( class(swfmodeltype) this)
private

Definition at line 626 of file swf.f90.

627 class(SwfModelType) :: this
628 class(BndType), pointer :: packobj
629 integer(I4B) :: ip
630
631 ! Calculate and save SWF observations
632 call this%obs%obs_bd()
633 call this%obs%obs_ot()
634
635 ! Calculate and save dfw observations
636 if (this%indfw > 0) then
637 call this%dfw%dfw_bd_obs()
638 call this%dfw%obs%obs_ot()
639 end if
640
641 ! Calculate and save package observations
642 do ip = 1, this%bndlist%Count()
643 packobj => getbndfromlist(this%bndlist, ip)
644 call packobj%bnd_bd_obs()
645 call packobj%bnd_ot_obs()
646 end do
647
Here is the call graph for this function:

◆ swf_rp()

subroutine swfmodule::swf_rp ( class(swfmodeltype) this)
private

Definition at line 296 of file swf.f90.

297 ! modules
298 use tdismodule, only: readnewdata
299 ! dummy
300 class(SwfModelType) :: this
301 ! local
302 class(BndType), pointer :: packobj
303 integer(I4B) :: ip
304
305 ! Check with TDIS on whether or not it is time to RP
306 if (.not. readnewdata) return
307
308 ! Read and prepare
309 if (this%indfw > 0) call this%dfw%dfw_rp()
310 if (this%inoc > 0) call this%oc%oc_rp()
311 if (this%insto > 0) call this%sto%sto_rp()
312 !if (this%inmvr > 0) call this%mvr%mvr_rp()
313 do ip = 1, this%bndlist%Count()
314 packobj => getbndfromlist(this%bndlist, ip)
315 call packobj%bnd_rp()
316 call packobj%bnd_rp_log()
317 call packobj%bnd_rp_obs()
318 end do
319
320 ! Check for steady state period
321 call this%steady_period_check()
322
logical(lgp), pointer, public readnewdata
flag indicating time to read new data
Definition tdis.f90:29
Here is the call graph for this function:

Variable Documentation

◆ niunit_swf

integer(i4b), parameter swfmodule::niunit_swf = SWF_NBASEPKG + SWF_NMULTIPKG
private

Definition at line 78 of file swf.f90.

◆ swf_nbasepkg

integer(i4b), parameter swfmodule::swf_nbasepkg = 9

Definition at line 76 of file swf.f90.

◆ swf_nmultipkg

integer(i4b), parameter swfmodule::swf_nmultipkg = 50
private

Definition at line 77 of file swf.f90.