Allocate and assign members of a new TimeArrayType object. Allocate space for the array so that this subroutine can be called repeatedly with the same array (but with different contents).
41 type(TimeArrayType),
pointer,
intent(out) :: newTa
42 character(len=*),
intent(in) :: modelname
44 integer(I4B),
dimension(:),
contiguous, &
46 character(len=LENMEMPATH) :: mempath
59 if (
size(mshape) == 2)
then
61 else if (
size(mshape) == 3)
then
62 isize = mshape(2) * mshape(3)
64 errmsg =
'Time array series is not supported for discretization type'
65 call store_error(errmsg, terminate=.true.)
69 allocate (newta%taArray(isize))
This module contains simulation constants.
integer(i4b), parameter lenmempath
maximum length of the memory path
character(len=lenmempath) function create_mem_path(component, subcomponent, context)
returns the path to the memory object