| 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 USBLK (IFLD, INTYP, CFIELD, IFIELD, |
| 9 |
& NEWTYP, NELBLK, IDELB, BLKTYP, *) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** USBLK *** (GEN3D) Read list of element block IDs |
| 13 |
C -- Written by Amy Gilkey - revised 05/21/86 |
| 14 |
C -- |
| 15 |
C --USBLK processes a list of element block IDs. If an element block |
| 16 |
C --is in the list, the block type is changed to the new block type. |
| 17 |
C -- |
| 18 |
C --Parameters: |
| 19 |
C -- IFLD - IN/OUT - the free-field index |
| 20 |
C -- INTYP - IN - the free-field type |
| 21 |
C -- CFIELD - IN - the free-field characters |
| 22 |
C -- IFIELD - IN - the free-field integers |
| 23 |
C -- NEWTYP - IN - the element block type to be set |
| 24 |
C -- NELBLK - IN - the number of element blocks |
| 25 |
C -- IDELB - IN - the ids for each block |
| 26 |
C -- BLKTYP - IN/OUT - the element block type |
| 27 |
C -- * - return statement iff serious error |
| 28 |
|
| 29 |
PARAMETER (MAXSET=10) |
| 30 |
|
| 31 |
INTEGER INTYP(*) |
| 32 |
CHARACTER*8 CFIELD(*) |
| 33 |
INTEGER IFIELD(*) |
| 34 |
CHARACTER NEWTYP |
| 35 |
INTEGER IDELB(NELBLK) |
| 36 |
CHARACTER BLKTYP(NELBLK) |
| 37 |
|
| 38 |
LOGICAL FFEXST |
| 39 |
CHARACTER*5 ISTR |
| 40 |
|
| 41 |
IF (.NOT. FFEXST (IFLD, INTYP)) THEN |
| 42 |
CALL INISTR (NELBLK, NEWTYP, BLKTYP) |
| 43 |
END IF |
| 44 |
|
| 45 |
10 CONTINUE |
| 46 |
IF (FFEXST (IFLD, INTYP)) THEN |
| 47 |
CALL FFINTG (IFLD, INTYP, IFIELD, |
| 48 |
& 'block id', 0, ID, *20) |
| 49 |
IELB = LOCINT (ID, NELBLK, IDELB) |
| 50 |
IF (IELB .LE. 0) THEN |
| 51 |
CALL INTSTR (1, 0, ID, ISTR, LSTR) |
| 52 |
CALL PRTERR ('CMDERR', |
| 53 |
& 'Invalid block id ' // ISTR(:LSTR) // ', ignored') |
| 54 |
GOTO 20 |
| 55 |
END IF |
| 56 |
BLKTYP(IELB) = NEWTYP |
| 57 |
20 CONTINUE |
| 58 |
GOTO 10 |
| 59 |
END IF |
| 60 |
|
| 61 |
RETURN |
| 62 |
END |