53 component_input_name, input_name, &
54 iperblock, parser, iout)
59 character(len=*),
intent(in) :: component_name
60 character(len=*),
intent(in) :: component_input_name
61 character(len=*),
intent(in) :: input_name
62 integer(I4B),
intent(in) :: iperblock
64 integer(I4B),
intent(in) :: iout
66 integer(I4B) :: icol, numset
69 call this%DynamicPkgLoadType%init(mf6_input, component_name, &
70 component_input_name, input_name, &
73 call loader%load(parser, mf6_input, this%nc_vars, this%input_name, iout)
76 call this%ctx%init(mf6_input)
77 call this%ctx%allocate_arrays()
80 numset = this%set_leading_idts()
84 this%idts(icol)%idt => &
85 idt_default(mf6_input%component_type, mf6_input%subcomponent_type, &
86 'PERIOD',
'SETTING',
'SETTING',
'STRING')
88 this%idts(icol)%idt%shape =
'LINELENGTH'
95 subroutine rp(this, parser)
104 this%structarray%read_from_parser(parser, .false., this%iout)
111 if (
associated(this%structarray))
then
118 -1, 0, this%mf6_input%mempath, &
119 this%mf6_input%component_mempath)
121 do icol = 1,
size(this%idts)
123 call this%structarray%mem_create_vector(icol, this%idts(icol)%idt)
138 select case (this%mf6_input%subcomponent_type)
140 nset = this%set_oc_idts()
142 nset = this%set_idts()
154 character(len=LINELENGTH),
dimension(:),
allocatable :: cols
155 integer(I4B) :: nparam, iparam, ip, ilen
161 this%mf6_input%component_type, &
162 this%mf6_input%subcomponent_type, &
168 ilen = len_trim(cols(nparam))
169 if (cols(nparam) (ilen - 6:ilen) ==
'SETTING')
then
170 allocate (this%idts(nparam))
173 call store_error(
'Internal IDM error: trailing setting param not found')
179 do ip = 1,
size(this%mf6_input%param_dfns)
180 idt => this%mf6_input%param_dfns(ip)
181 if (idt%tagname == cols(iparam))
then
182 this%idts(iparam)%idt => idt
187 if (
allocated(cols))
deallocate (cols)
197 integer(I4B) :: nparam, ip
202 this%mf6_input%subcomponent_type, &
203 'PERIOD',
'OCACTION',
'OCACTION',
'STRING')
210 allocate (this%idts(nparam))
213 this%idts(1)%idt => idt_ocaction
216 do ip = 1,
size(this%mf6_input%param_dfns)
217 idt => this%mf6_input%param_dfns(ip)
218 if (idt%tagname ==
'RTYPE')
then
219 this%idts(2)%idt => idt
229 if (
associated(this%structarray))
then
234 do icol = 1,
size(this%idts)
236 nullify (this%idts(icol)%idt)
239 if (
allocated(this%idts))
deallocate (this%idts)
241 call this%DynamicPkgLoadType%destroy()
This module contains block parser methods.
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
This module contains the DefinitionSelectModule.
type(inputparamdefinitiontype) function, pointer, public idt_default(component_type, subcomponent_type, blockname, tagname, mf6varname, datatype)
return allocated input definition type
type(inputparamdefinitiontype) function, pointer, public get_aggregate_definition_type(input_definition_types, component_type, subcomponent_type, blockname)
Return aggregate definition.
subroutine, public idt_parse_rectype(idt, cols, ncol)
allocate and set RECARRAY, KEYSTRING or RECORD param list
This module defines variable data types.
This module contains the LoadContextModule.
This module contains the LoadMf6FileModule.
This module contains the Mf6FileSettingLoadModule.
integer(i4b) function set_leading_idts(this)
integer(i4b) function set_idts(this)
subroutine rp(this, parser)
subroutine settingload_init(this, mf6_input, component_name, component_input_name, input_name, iperblock, parser, iout)
integer(i4b) function set_oc_idts(this)
This module contains simulation methods.
subroutine, public store_error(msg, terminate)
Store an error message.
subroutine, public store_error_filename(filename, terminate)
Store the erroring file name.
This module contains the StructArrayModule.
type(structarraytype) function, pointer, public constructstructarray(mf6_input, ncol, nrow, blocknum, mempath, component_mempath)
constructor for a struct_array
subroutine, public destructstructarray(struct_array)
destructor for a struct_array
derived type for boundary package input context
Static parser based input loader.
Pointer type for read state variable.
type for structured array