MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
tsp-ic.f90
Go to the documentation of this file.
1 module tspicmodule
2 
3  use kindmodule, only: dp, i4b
4  use constantsmodule, only: lenvarname
5  use gwficmodule, only: gwfictype
7  use basedismodule, only: disbasetype
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 
20 contains
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  !
52  ! -- Return
53  return
54  end subroutine ic_cr
55 
56 end module tspicmodule
This module contains block parser methods.
Definition: BlockParser.f90:7
This module contains simulation constants.
Definition: Constants.f90:9
integer(i4b), parameter lenvarname
maximum length of a variable name
Definition: Constants.f90:17
This module defines variable data types.
Definition: kind.f90:8
subroutine, public ic_cr(ic, name_model, input_mempath, inunit, iout, dis, depvartype)
Create a new initial conditions object.
Definition: tsp-ic.f90:25