65 class(LayerArrayLoadType), intent(inout) :: this
66 type(ModflowInputType), intent(in) :: mf6_input
67 character(len=*), intent(in) :: component_name
68 character(len=*), intent(in) :: component_input_name
69 character(len=*), intent(in) :: input_name
70 integer(I4B), intent(in) :: iperblock
71 type(BlockParserType), pointer, intent(inout) :: parser
72 integer(I4B), intent(in) :: iout
73 type(LoadMf6FileType) :: loader
74 type(CharacterStringType), dimension(:), pointer, &
75 contiguous :: tas_fnames
76 type(InputParamDefinitionType), pointer :: idt
77 integer(I4B), dimension(:), pointer, contiguous :: int1d
78 character(len=LINELENGTH) :: fname
79 integer(I4B) :: tas6_size, n
80
81
82 call this%DynamicPkgLoadType%init(mf6_input, component_name, &
83 component_input_name, &
84 input_name, iperblock, iout)
85
86 nullify (this%aux_tasnames)
87 nullify (this%param_tasnames)
88 this%tas_active = 0
89 this%iout = iout
90
91
92 call loader%load(parser, mf6_input, this%nc_vars, this%input_name, iout)
93
94
95 allocate (this%tasmanager)
96 call tasmanager_cr(this%tasmanager, modelname=this%mf6_input%component_name, &
97 iout=this%iout)
98
99
100 call get_isize(
'TAS6_FILENAME', this%mf6_input%mempath, tas6_size)
101 if (tas6_size > 0) then
102 this%tas_active = 1
103 call mem_setptr(tas_fnames,
'TAS6_FILENAME', this%mf6_input%mempath)
104
105 do n = 1, size(tas_fnames)
106 fname = tas_fnames(n)
107 call this%tasmanager%add_tasfile(fname)
108 end do
109 end if
110
111
112 call this%ctx%init(mf6_input)
113
114
115 call this%params_alloc()
116
117
118 call this%tas_arrays_alloc()
119
120
121 if (this%param_names(1) == &
122 'I'//trim(this%mf6_input%subcomponent_type(1:3))) then
124 this%mf6_input%component_type, &
125 this%mf6_input%subcomponent_type, &
126 'PERIOD', this%param_names(1), &
127 this%input_name)
128 call mem_setptr(int1d, idt%mf6varname, this%mf6_input%mempath)
129 int1d = 1
130 end if
This module contains block parser methods.
This module contains the DefinitionSelectModule.
type(inputparamdefinitiontype) function, pointer, public get_param_definition_type(input_definition_types, component_type, subcomponent_type, blockname, tagname, filename, found)
Return parameter definition.
This module contains the LoadMf6FileModule.
subroutine, public get_isize(name, mem_path, isize)
Get the number of elements for this variable.
Static parser based input loader.