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, &
112 if (
associated(this%structarray))
then
119 -1, 0, this%mf6_input%mempath, &
120 this%mf6_input%component_mempath)
122 do icol = 1,
size(this%idts)
124 call this%structarray%mem_create_vector(icol, this%idts(icol)%idt)
139 select case (this%mf6_input%subcomponent_type)
141 nset = this%set_oc_idts()
143 nset = this%set_idts()
155 character(len=LINELENGTH),
dimension(:),
allocatable :: cols
156 integer(I4B) :: nparam, iparam, ip, ilen
162 this%mf6_input%component_type, &
163 this%mf6_input%subcomponent_type, &
169 ilen = len_trim(cols(nparam))
170 if (cols(nparam) (ilen - 6:ilen) ==
'SETTING')
then
171 allocate (this%idts(nparam))
174 call store_error(
'Internal IDM error: trailing setting param not found')
180 do ip = 1,
size(this%mf6_input%param_dfns)
181 idt => this%mf6_input%param_dfns(ip)
182 if (idt%tagname == cols(iparam))
then
183 this%idts(iparam)%idt => idt
188 if (
allocated(cols))
deallocate (cols)
198 integer(I4B) :: nparam, ip
203 this%mf6_input%subcomponent_type, &
204 'PERIOD',
'OCACTION',
'OCACTION',
'STRING')
211 allocate (this%idts(nparam))
214 this%idts(1)%idt => idt_ocaction
217 do ip = 1,
size(this%mf6_input%param_dfns)
218 idt => this%mf6_input%param_dfns(ip)
219 if (idt%tagname ==
'RTYPE')
then
220 this%idts(2)%idt => idt
230 if (
associated(this%structarray))
then
235 do icol = 1,
size(this%idts)
237 nullify (this%idts(icol)%idt)
240 if (
allocated(this%idts))
deallocate (this%idts)
242 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