MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
tsp-ic.f90
Go to the documentation of this file.
2
3 use kindmodule, only: dp, i4b
5 use gwficmodule, only: gwfictype
8
9 implicit none
10 private
11 public :: tspictype
12 public :: ic_cr
13
14 ! -- Most of the TspIcType functionality comes from GwfIcType
15 type, extends(gwfictype) :: tspictype
16 ! -- strings
17 character(len=LENVARNAME) :: depvartype = ''
18 end type tspictype
19
20contains
21
22 !> @brief Create a new initial conditions object
23 !<
24 subroutine ic_cr(ic, name_model, input_mempath, inunit, iout, dis, depvartype)
25 ! -- dummy
26 type(tspictype), pointer :: ic
27 character(len=*), intent(in) :: name_model
28 character(len=*), intent(in) :: input_mempath
29 integer(I4B), intent(in) :: inunit
30 integer(I4B), intent(in) :: iout
31 class(disbasetype), pointer, intent(in) :: dis
32 character(len=LENVARNAME), intent(in) :: depvartype
33 !
34 ! -- Create the object
35 allocate (ic)
36 !
37 ! -- create name and memory path
38 call ic%set_names(1, name_model, 'IC', 'IC', input_mempath)
39 !
40 ! -- Allocate scalars
41 call ic%allocate_scalars()
42 !
43 ic%inunit = inunit
44 ic%iout = iout
45 !
46 ! -- set pointers
47 ic%dis => dis
48 !
49 ! -- Give package access to the assigned labelsd based on dependent variable
50 ic%depvartype = depvartype
51 end subroutine ic_cr
52
53end module tspicmodule
This module contains block parser methods.
This module contains simulation constants.
Definition Constants.f90:9
@ dis
DIS6 discretization.
integer(i4b), parameter lenvarname
maximum length of a variable name
Definition Constants.f90:17
subroutine, public ic_cr(ic, name_model, input_mempath, inunit, iout, dis)
Create a new initial conditions object.
Definition gwf-ic.f90:33
This module defines variable data types.
Definition kind.f90:8