This module contains the ModelPackageInputModule.
More...
Add an input model type to routines in this module to integrate the Model with IDM.
◆ multi_package_type()
logical(lgp) function, public modelpackageinputmodule::multi_package_type |
( |
character(len=lenftype), intent(in) |
mtype_component, |
|
|
character(len=lenftype), intent(in) |
ptype_component, |
|
|
character(len=lenftype), intent(in) |
pkgtype |
|
) |
| |
Definition at line 81 of file ModelPackageInput.f90.
85 character(len=LENFTYPE),
intent(in) :: mtype_component
86 character(len=LENFTYPE),
intent(in) :: ptype_component
87 character(len=LENFTYPE),
intent(in) :: pkgtype
89 logical(LGP) :: multi_package
93 multi_package = .false.
95 select case (mtype_component)
97 do n = 1, chf_nmultipkg
98 if (chf_multipkg(n) == pkgtype)
then
99 multi_package = .true.
105 do n = 1, gwe_nmultipkg
106 if (gwe_multipkg(n) == pkgtype)
then
107 multi_package = .true.
113 do n = 1, gwf_nmultipkg
114 if (gwf_multipkg(n) == pkgtype)
then
115 multi_package = .true.
121 do n = 1, gwt_nmultipkg
122 if (gwt_multipkg(n) == pkgtype)
then
123 multi_package = .true.
129 do n = 1, olf_nmultipkg
130 if (olf_multipkg(n) == pkgtype)
then
131 multi_package = .true.
137 do n = 1, prt_nmultipkg
138 if (prt_multipkg(n) == pkgtype)
then
139 multi_package = .true.
◆ supported_model_packages()
subroutine, public modelpackageinputmodule::supported_model_packages |
( |
character(len=lenftype), intent(in) |
mtype, |
|
|
character(len=lenpackagetype), dimension(:), intent(inout), allocatable |
pkgtypes, |
|
|
integer(i4b), intent(inout) |
numpkgs |
|
) |
| |
Allocate a list of package types supported by the model. Base packages should be listed first as list determines load order.
Definition at line 41 of file ModelPackageInput.f90.
44 character(len=LENFTYPE),
intent(in) :: mtype
45 character(len=LENPACKAGETYPE),
dimension(:),
allocatable, &
46 intent(inout) :: pkgtypes
47 integer(I4B),
intent(inout) :: numpkgs
52 numpkgs = chf_nbasepkg + chf_nmultipkg
53 allocate (pkgtypes(numpkgs))
54 pkgtypes = [chf_basepkg, chf_multipkg]
56 numpkgs = gwe_nbasepkg + gwe_nmultipkg
57 allocate (pkgtypes(numpkgs))
58 pkgtypes = [gwe_basepkg, gwe_multipkg]
60 numpkgs = gwf_nbasepkg + gwf_nmultipkg
61 allocate (pkgtypes(numpkgs))
62 pkgtypes = [gwf_basepkg, gwf_multipkg]
64 numpkgs = gwt_nbasepkg + gwt_nmultipkg
65 allocate (pkgtypes(numpkgs))
66 pkgtypes = [gwt_basepkg, gwt_multipkg]
68 numpkgs = olf_nbasepkg + olf_nmultipkg
69 allocate (pkgtypes(numpkgs))
70 pkgtypes = [olf_basepkg, olf_multipkg]
72 numpkgs = prt_nbasepkg + prt_nmultipkg
73 allocate (pkgtypes(numpkgs))
74 pkgtypes = [prt_basepkg, prt_multipkg]