15 real(dp),
dimension(:),
pointer,
contiguous :: strt => null()
31 subroutine ic_cr(ic, 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 :: fmtic = &
43 "(1x, /1x, 'IC -- Initial Conditions Package, Version 8, 3/28/2015', &
44 &' input read from mempath: ', A, //)"
50 call ic%set_names(1, name_model,
'IC',
'IC', input_mempath)
53 call ic%allocate_scalars()
65 write (ic%iout, fmtic) input_mempath
76 call this%source_griddata()
84 real(DP),
dimension(:),
intent(inout) :: x
89 call this%allocate_arrays(this%dis%nodes)
95 do n = 1, this%dis%nodes
117 call this%NumericalPackageType%da()
127 integer(I4B),
intent(in) :: nodes
130 call mem_allocate(this%strt, nodes,
'STRT', this%memoryPath)
143 character(len=LINELENGTH) :: errmsg
145 integer(I4B),
dimension(:),
pointer,
contiguous :: map
149 if (this%dis%nodes < this%dis%nodesuser) map => this%dis%nodeuser
152 call mem_set_value(this%strt,
'STRT', this%input_mempath, map, found%strt)
155 if (.not. found%strt)
then
156 write (errmsg,
'(a)')
'Error in GRIDDATA block: STRT not found.'
159 else if (this%iout > 0)
then
160 write (this%iout,
'(4x,a)')
'STRT set from input file'
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.