49 subroutine oc_init(this, mf6_input, component_name, component_input_name, &
50 input_name, iperblock, parser, iout)
55 character(len=*),
intent(in) :: component_name
56 character(len=*),
intent(in) :: component_input_name
57 character(len=*),
intent(in) :: input_name
58 integer(I4B),
intent(in) :: iperblock
60 integer(I4B),
intent(in) :: iout
62 integer(I4B) :: nparam, icol
65 call this%DynamicPkgLoadType%init(mf6_input, component_name, &
66 component_input_name, input_name, &
69 call loader%load(parser, mf6_input, this%nc_vars, this%input_name, iout)
72 call this%ctx%init(mf6_input)
73 call this%ctx%allocate_arrays()
77 select case (mf6_input%subcomponent_type)
84 allocate (this%idts(nparam))
87 select case (mf6_input%subcomponent_type)
90 idt_default(mf6_input%component_type, mf6_input%subcomponent_type, &
91 'PERIOD',
'OCACTION',
'OCACTION',
'STRING')
93 idt_default(mf6_input%component_type, mf6_input%subcomponent_type, &
94 'PERIOD',
'RTYPE',
'RTYPE',
'STRING')
101 this%idts(icol)%idt => &
102 idt_default(mf6_input%component_type, mf6_input%subcomponent_type, &
103 'PERIOD',
'SETTING',
'SETTING',
'STRING')
105 this%idts(icol)%idt%shape =
'LINELENGTH'
112 subroutine rp(this, parser)
121 this%structarray%read_from_parser(parser, .false., this%iout)
128 if (
associated(this%structarray))
then
135 -1, 0, this%mf6_input%mempath, &
136 this%mf6_input%component_mempath)
138 do icol = 1,
size(this%idts)
140 call this%structarray%mem_create_vector(icol, this%idts(icol)%idt)
149 if (
associated(this%structarray))
then
154 do icol = 1,
size(this%idts)
156 deallocate (this%idts(icol)%idt)
157 nullify (this%idts(icol)%idt)
160 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
This module defines variable data types.
This module contains the LoadContextModule.
This module contains the LoadMf6FileModule.
This module contains the Mf6FileSettingLoadModule.
subroutine oc_init(this, mf6_input, component_name, component_input_name, input_name, iperblock, parser, iout)
subroutine rp(this, parser)
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