| 1 |
C Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
C NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
C |
| 5 |
C See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
C======================================================================= |
| 8 |
SUBROUTINE MEMERR |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** MEMERR *** (ETCLIB) Flag dynamic memory error |
| 12 |
C -- Written by Amy Gilkey - revised 02/23/88 |
| 13 |
C -- |
| 14 |
C --MEMERR prints an error message for a dynamic memory error. |
| 15 |
|
| 16 |
CALL MDSTAT (NERR, MEM) |
| 17 |
CALL MDERPT (2, NOVER) |
| 18 |
IF (NERR .LE. NOVER) THEN |
| 19 |
CALL PRTERR ('FATAL', 'Too much dynamic memory requested') |
| 20 |
ELSE |
| 21 |
CALL PRTERR ('PROGRAM', 'Dynamic allocation problem') |
| 22 |
CALL MDEROR (6) |
| 23 |
END IF |
| 24 |
|
| 25 |
RETURN |
| 26 |
END |