| 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 DELCMD (INLINE, INTYP, CFIELD, *) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** DELCMD *** (ALGEBRA) Perform DELETE command |
| 12 |
C -- Written by Amy Gilkey - revised 11/23/87 |
| 13 |
C -- |
| 14 |
C --DELCMD processes the input DELETE command. It sets the ISTVAR |
| 15 |
C --flag in the /VAR../ arrays for all deleted variables. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- INLINE - IN/OUT - the parsed input lines for the log file |
| 19 |
C -- INTYP - IN - the field types |
| 20 |
C -- CFIELD - IN - the character fields |
| 21 |
C -- * - return statement if command not executed |
| 22 |
C -- |
| 23 |
C --Common Variables: |
| 24 |
C -- Uses IXLHS, NAMVAR of /VAR../ |
| 25 |
C -- Sets ISTVAR of /VAR../ |
| 26 |
|
| 27 |
PARAMETER (ICURTM = 1, ILSTTM = 2, IONETM = 3) |
| 28 |
include 'ag_namlen.blk' |
| 29 |
include 'ag_var.blk' |
| 30 |
C database type, num_of qa and info records |
| 31 |
include 'ag_dbnumq.blk' |
| 32 |
|
| 33 |
CHARACTER*(*) INLINE |
| 34 |
INTEGER INTYP(*) |
| 35 |
CHARACTER*(*) CFIELD(*) |
| 36 |
|
| 37 |
LOGICAL FFEXST, MATSTR |
| 38 |
CHARACTER*(maxnam) NAME |
| 39 |
|
| 40 |
NUMLHS = MAXVAR - IXLHS + 1 |
| 41 |
|
| 42 |
IFLD = 1 |
| 43 |
100 CONTINUE |
| 44 |
IF (FFEXST (IFLD, INTYP)) THEN |
| 45 |
|
| 46 |
CALL FFCHAR (IFLD, INTYP, CFIELD, ' ', NAME) |
| 47 |
|
| 48 |
IF (MATSTR (NAME, 'QAINFO', 6)) THEN |
| 49 |
NQAREC = 0 |
| 50 |
NINFO = 0 |
| 51 |
ELSE IF (MATSTR (NAME, 'QA', 2)) THEN |
| 52 |
NQAREC = 0 |
| 53 |
ELSE IF (MATSTR (NAME, 'INFORMATION', 11)) THEN |
| 54 |
NINFO = 0 |
| 55 |
ELSE |
| 56 |
IVAR = LOCSTR (NAME, NUMLHS, NAMVAR(IXLHS)) |
| 57 |
IF (IVAR .EQ. 0) THEN |
| 58 |
CALL PRTERR ('CMDERR', |
| 59 |
& '"' // NAME(:LENSTR(NAME)) // '" not defined, ignored') |
| 60 |
GOTO 110 |
| 61 |
END IF |
| 62 |
ISTVAR(ICURTM,IVAR+IXLHS-1) = -1 |
| 63 |
END IF |
| 64 |
CALL FFADDC (NAME, INLINE) |
| 65 |
|
| 66 |
110 CONTINUE |
| 67 |
GOTO 100 |
| 68 |
END IF |
| 69 |
|
| 70 |
RETURN |
| 71 |
END |