dmmrea, dmmreaf — Re-allocate dataset
dmmrea
changes the size of an existing
dataset in the Dynamic Memory buffer (E, i.e real*4 or I, i.e
integer*4 data only). dmmreaf
performs the same
function as dmmrea
, but it re-allocates
nwnew
real*8 or integer*8 data elements. The
identifier is preserved during the operation. The size of the
dataset may increase or decrease. Depending on the new size the
address of the dataset changes, but the contents of the old dataset
are preserved. Note that the size is in integer*4 data elements for
dmmrea
and in real*8 data elements for
dmmreaf
. dmmrea
performs
the same function as dmmall
if
ident
is set to 0 before calling
dmmrea
.
subroutine dmmrea(size, ident, status) integer*4 size integer*4 ident integer*4 status subroutine dmmreaf(size, ident, status) integer*4 size integer*4 ident integer*4 status
size
New number of data elements to be reserved (input).
For dmmrea
, the size is counted in
number of integer*4 or real*4 words. For
dmmreaf
, the size is counted in number
of real*8 or integer*8 words.
ident
DMM identifier of the
dataset to be re-allocated (input,output). If
ident
is set to 0 before calling
dmmrea
, the dataset is allocated, i.e
the call to dmmrea
is replaced to a
call to dmmall
and
ident
is returned. If
ident
is greater than 0 the existing
dataset is resized.
status
Status code returned (output). A value of 0 indicates normal completion of the operation. A negative value indicates an error. A positive value indicates a warning. See MemCom error codes.