You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1008 B
37 lines
1008 B
2 years ago
|
C Copyright(C) 1999-2020 National Technology & Engineering Solutions
|
||
|
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
|
||
|
C NTESS, the U.S. Government retains certain rights in this software.
|
||
|
C
|
||
|
C See packages/seacas/LICENSE for details
|
||
|
|
||
|
C=======================================================================
|
||
|
LOGICAL FUNCTION MEMEXT(IB,MEMRY,INCL)
|
||
|
INTEGER IB
|
||
|
INTEGER MEMRY(*)
|
||
|
INTEGER DELTA
|
||
|
INTEGER MEMALL
|
||
|
LOGICAL MEMFRE
|
||
|
INTEGER LA
|
||
|
INTEGER IBT
|
||
|
C ... Guess by GDS -- DELTA not defined, set to 0 since that is
|
||
|
C what it would be on VMS if undefined.
|
||
|
DELTA = 0
|
||
|
LA = MEMRY(IB-2) - IB
|
||
|
IBT = IB
|
||
|
INCL = LA + DELTA
|
||
|
IB = MEMALL(INCL,MEMRY)
|
||
|
DO 2780 I = 1,LA
|
||
|
MEMRY(IB+I-1) = MEMRY(IBT+I-1)
|
||
|
2780 CONTINUE
|
||
|
IF (.NOT.MEMFRE(IBT,MEMRY)) THEN
|
||
|
WRITE (6,*) 'Error deallocating old segment.'
|
||
|
MEMEXT = .FALSE.
|
||
|
RETURN
|
||
|
|
||
|
END IF
|
||
|
|
||
|
MEMEXT = .TRUE.
|
||
|
RETURN
|
||
|
|
||
|
END
|