20 real(dp),
dimension(:),
pointer,
contiguous :: porosity => null()
21 real(dp),
dimension(:),
pointer,
contiguous :: retfactor => null()
22 integer(I4B),
dimension(:),
pointer,
contiguous :: izone => null()
33 subroutine mip_cr(mip, name_model, input_mempath, inunit, iout, dis)
36 character(len=*),
intent(in) :: name_model
37 character(len=*),
intent(in) :: input_mempath
38 integer(I4B),
intent(in) :: inunit
39 integer(I4B),
intent(in) :: iout
42 character(len=*),
parameter :: fmtheader = &
43 "(1x, /1x, 'MIP -- MODEL INPUT PACKAGE', &
44 &' INPUT READ FROM MEMPATH: ', A, /)"
50 call mip%set_names(1, name_model,
'MIP',
'MIP', input_mempath)
53 call mip%allocate_scalars()
64 write (iout, fmtheader) input_mempath
76 call this%NumericalPackageType%da()
87 call this%NumericalPackageType%allocate_scalars()
93 integer(I4B),
intent(in) :: nodes
98 call mem_allocate(this%porosity, nodes,
'POROSITY', this%memoryPath)
99 call mem_allocate(this%retfactor, nodes,
'RETFACTOR', this%memoryPath)
100 call mem_allocate(this%izone, nodes,
'IZONE', this%memoryPath)
103 this%porosity(i) =
dzero
104 this%retfactor(i) =
done
115 character(len=LINELENGTH) :: errmsg
117 integer(I4B),
dimension(:),
pointer,
contiguous :: map => null()
120 if (this%dis%nodes < this%dis%nodesuser) map => this%dis%nodeuser
123 call this%allocate_arrays(this%dis%nodes)
126 call mem_set_value(this%porosity,
'POROSITY', this%input_mempath, &
128 call mem_set_value(this%retfactor,
'RETFACTOR', this%input_mempath, &
129 map, found%retfactor)
130 call mem_set_value(this%izone,
'IZONE', this%input_mempath, map, &
134 if (.not. found%porosity)
then
135 write (errmsg,
'(a)')
'Error in GRIDDATA block: POROSITY not found'
This module contains block parser methods.
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
real(dp), parameter dzero
real constant zero
real(dp), parameter done
real constant 1
This module defines variable data types.
subroutine, public memorystore_remove(component, subcomponent, context)
This module contains the base numerical package type.
subroutine allocate_scalars(this)
subroutine allocate_arrays(this, nodes)
Allocate arrays.
subroutine mip_da(this)
Deallocate memory.
subroutine, public mip_cr(mip, name_model, input_mempath, inunit, iout, dis)
Create a model input object.
subroutine mip_ar(this)
@ brief Initialize package inputs
This module contains simulation methods.
subroutine, public store_error(msg, terminate)
Store an error message.
This module contains simulation variables.
character(len=linelength) idm_context