| 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 |
LOGICAL FUNCTION OKABRT (ISOK) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** OKABRT *** (ETCLIB) Initialize cancel function |
| 12 |
C -- Written by Amy Gilkey - revised 12/21/87 |
| 13 |
C -- |
| 14 |
C --OKABRT initializes the cancel flag. It must be called before ISABRT. |
| 15 |
|
| 16 |
C --Routines Called: |
| 17 |
C -- CPUIFC - (PLTLIB) Check interrupt flag |
| 18 |
|
| 19 |
LOGICAL ISABRT |
| 20 |
LOGICAL ISOK |
| 21 |
|
| 22 |
LOGICAL CPUIFC, LDUM |
| 23 |
|
| 24 |
LOGICAL DOABRT |
| 25 |
SAVE DOABRT |
| 26 |
|
| 27 |
DATA DOABRT / .FALSE. / |
| 28 |
|
| 29 |
C --Initialize enable cancel flag |
| 30 |
DOABRT = ISOK |
| 31 |
|
| 32 |
IF (DOABRT) THEN |
| 33 |
C --Initialize cancel flag |
| 34 |
LDUM = CPUIFC (.TRUE.) |
| 35 |
END IF |
| 36 |
|
| 37 |
OKABRT = DOABRT |
| 38 |
|
| 39 |
RETURN |
| 40 |
|
| 41 |
C======================================================================= |
| 42 |
ENTRY ISABRT () |
| 43 |
C======================================================================= |
| 44 |
|
| 45 |
C --*** ISABRT *** (ETCLIB) Check cancel function |
| 46 |
C -- Written by Amy Gilkey - revised 12/17/87 |
| 47 |
C -- |
| 48 |
C --ISABRT checks the cancel flag. If it is set, it aborts the current |
| 49 |
C --processing. In any case, the value of the cancel flag is returned |
| 50 |
C --as the function value. |
| 51 |
|
| 52 |
C --Routines Called: |
| 53 |
C -- CPUIFC - (PLTLIB) Check interrupt flag |
| 54 |
|
| 55 |
IF (DOABRT) THEN |
| 56 |
C --Return cancel flag |
| 57 |
ISABRT = CPUIFC (.FALSE.) |
| 58 |
|
| 59 |
IF (ISABRT) THEN |
| 60 |
C --Send abort message |
| 61 |
WRITE (*, '(1X, A)') '*** Processing aborted ***' |
| 62 |
END IF |
| 63 |
|
| 64 |
ELSE |
| 65 |
ISABRT = .FALSE. |
| 66 |
END IF |
| 67 |
|
| 68 |
RETURN |
| 69 |
END |