16 real(dp),
dimension(:),
pointer,
contiguous :: strt => null()
32 subroutine ic_cr(ic, name_model, input_mempath, inunit, iout, dis)
37 character(len=*),
intent(in) :: name_model
38 character(len=*),
intent(in) :: input_mempath
39 integer(I4B),
intent(in) :: inunit
40 integer(I4B),
intent(in) :: iout
43 character(len=*),
parameter :: fmtic = &
44 "(1x, /1x, 'IC -- Initial Conditions Package, Version 8, 3/28/2015', &
45 &' input read from mempath: ', A, //)"
51 call ic%set_names(1, name_model,
'IC',
'IC', input_mempath)
54 call ic%allocate_scalars()
66 write (ic%iout, fmtic) input_mempath
78 call this%source_griddata()
86 real(DP),
dimension(:),
intent(inout) :: x
91 call this%allocate_arrays(this%dis%nodes)
97 do n = 1, this%dis%nodes
119 call this%NumericalPackageType%da()
129 integer(I4B),
intent(in) :: nodes
132 call mem_allocate(this%strt, nodes,
'STRT', this%memoryPath)
145 character(len=LINELENGTH) :: errmsg
147 integer(I4B),
dimension(:),
pointer,
contiguous :: map
151 if (this%dis%nodes < this%dis%nodesuser) map => this%dis%nodeuser
154 call mem_set_value(this%strt,
'STRT', this%input_mempath, map, found%strt)
157 if (.not. found%strt)
then
158 write (errmsg,
'(a)')
'Error in GRIDDATA block: STRT not found.'
161 else if (this%iout > 0)
then
162 write (this%iout,
'(4x,a)')
'STRT set from input file'
This module contains block parser methods.
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
This module defines variable data types.
subroutine, public memorystore_remove(component, subcomponent, context)
This module contains the base numerical package type.
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 simulation variables.
character(len=linelength) idm_context
subroutine source_griddata(this)
Copy grid data from IDM into package.
subroutine ic_load(this)
Load data from IDM into package.
subroutine, public ic_cr(ic, name_model, input_mempath, inunit, iout, dis)
Create a new initial conditions object.
subroutine allocate_arrays(this, nodes)
Allocate arrays.
subroutine ic_da(this)
Deallocate.
subroutine ic_ar(this, x)
Allocate arrays, load from IDM, and assign head.