| 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 FIXAL2 (ALIVE, LENF, IF2EL, IE2ELB, NEWELB) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** FIXAL2 *** (MESH) Adjust for element birth/death (2D) |
| 12 |
C -- Written by Amy Gilkey - revised 03/10/88 |
| 13 |
C -- |
| 14 |
C --FIXAL2 adjusts the face array to reflect the new element states. |
| 15 |
C --Faces that are dead are moved to LENF(NELBLK+2). |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- ALIVE - IN - true iff element i is alive |
| 19 |
C -- LENF - IN - the cumulative face counts by element block |
| 20 |
C -- IF2EL - IN - the element number of each face |
| 21 |
C -- IE2ELB - IN - the element block for each element |
| 22 |
C -- NEWELB - OUT - size = LENF(NELBLK+1) |
| 23 |
C -- |
| 24 |
C --Common Variables: |
| 25 |
C -- Uses NELBLK of /DBNUMS/ |
| 26 |
|
| 27 |
include 'dbnums.blk' |
| 28 |
include 'd3nums.blk' |
| 29 |
|
| 30 |
LOGICAL ALIVE(NUMEL) |
| 31 |
INTEGER LENF(0:NELBLK+2) |
| 32 |
INTEGER IF2EL(*) |
| 33 |
INTEGER IE2ELB(NUMEL) |
| 34 |
INTEGER NEWELB(*) |
| 35 |
|
| 36 |
DO 110 IELB = 1, NELBLK+2 |
| 37 |
DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB) |
| 38 |
NEWELB(IFAC) = IELB |
| 39 |
100 CONTINUE |
| 40 |
110 CONTINUE |
| 41 |
|
| 42 |
C --Check each face by its defining elements, and move face if necessary |
| 43 |
|
| 44 |
DO 130 IELB = 1, NELBLK+2 |
| 45 |
DO 120 IFAC = LENF(IELB-1)+1, LENF(IELB) |
| 46 |
|
| 47 |
C --Determine if the element for this face is alive |
| 48 |
|
| 49 |
IEL = IF2EL(IFAC) |
| 50 |
|
| 51 |
IF (ALIVE(IEL)) THEN |
| 52 |
|
| 53 |
C --If alive, change to an ALIVE face |
| 54 |
NEWELB(IFAC) = IE2ELB(IEL) |
| 55 |
|
| 56 |
ELSE |
| 57 |
|
| 58 |
C --If not alive, change to a DEAD face |
| 59 |
NEWELB(IFAC) = NELBLK+2 |
| 60 |
|
| 61 |
END IF |
| 62 |
|
| 63 |
120 CONTINUE |
| 64 |
130 CONTINUE |
| 65 |
|
| 66 |
RETURN |
| 67 |
END |