| 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 |
C======================================================================= |
| 7 |
SUBROUTINE WDBERR (IOSTAT, ERRMSG) |
| 8 |
C======================================================================= |
| 9 |
|
| 10 |
C --*** WDBERR *** (CRACK) Display a database error message |
| 11 |
C -- |
| 12 |
C --WDBERR displays a database read error message. |
| 13 |
C -- |
| 14 |
C --Parameters: |
| 15 |
C -- IOSTAT - IN - the error status |
| 16 |
C -- ERRMSG - IN/OUT - the item being read when the error occurred; |
| 17 |
C -- compressed |
| 18 |
|
| 19 |
CHARACTER*(*) ERRMSG |
| 20 |
|
| 21 |
CALL SQZSTR (ERRMSG, LSTR) |
| 22 |
WRITE (*, 10000) ERRMSG(:LSTR) |
| 23 |
IF (IOSTAT .LT. 0) THEN |
| 24 |
WRITE (*, 10010) IOSTAT, 'Unexpected end of file' |
| 25 |
ELSE IF (IOSTAT .EQ. 67) THEN |
| 26 |
WRITE (*, 10010) IOSTAT, 'Input record is too short' |
| 27 |
ELSE |
| 28 |
WRITE (*, 10010) IOSTAT |
| 29 |
END IF |
| 30 |
|
| 31 |
RETURN |
| 32 |
|
| 33 |
10000 FORMAT (/, ' DATABASE ERROR - Reading ', A) |
| 34 |
10010 FORMAT (3X, ' FORTRAN Error #', I4, :, ' - ', A) |
| 35 |
END |