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

Data Types

type  tspictype

Functions/Subroutines

subroutine, public ic_cr (ic, name_model, input_mempath, inunit, iout, dis, depvartype)
 Create a new initial conditions object.

Function/Subroutine Documentation

◆ ic_cr()

subroutine, public tspicmodule::ic_cr ( type(tspictype), pointer ic,
character(len=*), intent(in) name_model,
character(len=*), intent(in) input_mempath,
integer(i4b), intent(in) inunit,
integer(i4b), intent(in) iout,
class(disbasetype), intent(in), pointer dis,
character(len=lenvarname), intent(in) depvartype )

Definition at line 24 of file tsp-ic.f90.

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
Here is the caller graph for this function: