| 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 ALLAL3 (LENF, IF2EL, IF2EL2, IE2ELB, NEWELB) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** ALLAL3 *** (MESH) Adjust for elements all alive (3D) |
| 12 |
C -- Written by Amy Gilkey - revised 03/10/88 |
| 13 |
C -- |
| 14 |
C --ALLAL3 adjusts the face array to reflect all elements alive. |
| 15 |
C -- |
| 16 |
C --An element birth causes all the faces of the element to be moved |
| 17 |
C --as follows: |
| 18 |
C -- Dead -> surface (if one alive element for face) or |
| 19 |
C -- interior (if two alive elements) |
| 20 |
C -- Surface -> interior |
| 21 |
C -- |
| 22 |
C --Parameters: |
| 23 |
C -- LENF - IN - the cumulative face counts by element block |
| 24 |
C -- IF2EL - IN - the element number of each face |
| 25 |
C -- IF2EL2 - IN - the secondary element number of each face |
| 26 |
C -- IE2ELB - IN - the element block for each element |
| 27 |
C -- NEWELB - OUT - size = LENF(NELBLK+1) |
| 28 |
C -- |
| 29 |
C --Common Variables: |
| 30 |
C -- Uses NELBLK of /DBNUMS/ |
| 31 |
|
| 32 |
include 'dbnums.blk' |
| 33 |
include 'd3nums.blk' |
| 34 |
|
| 35 |
INTEGER LENF(0:NELBLK+2) |
| 36 |
INTEGER IF2EL(*), IF2EL2(*) |
| 37 |
INTEGER IE2ELB(NUMEL) |
| 38 |
INTEGER NEWELB(*) |
| 39 |
|
| 40 |
C --Change half-dead surface faces back to interior faces |
| 41 |
|
| 42 |
DO 110 IELB = 1, NELBLK |
| 43 |
DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB) |
| 44 |
IF (IF2EL2(IFAC) .GT. 0) THEN |
| 45 |
NEWELB(IFAC) = NELBLK+1 |
| 46 |
END IF |
| 47 |
100 CONTINUE |
| 48 |
110 CONTINUE |
| 49 |
|
| 50 |
C --Leave interior faces alone |
| 51 |
|
| 52 |
IELB = NELBLK+1 |
| 53 |
DO 120 IFAC = LENF(IELB-1)+1, LENF(IELB) |
| 54 |
NEWELB(IFAC) = IELB |
| 55 |
120 CONTINUE |
| 56 |
|
| 57 |
C --Change dead faces back to surface or interior faces |
| 58 |
|
| 59 |
IELB = NELBLK+2 |
| 60 |
DO 130 IFAC = LENF(IELB-1)+1, LENF(IELB) |
| 61 |
IF (IF2EL2(IFAC) .LE. 0) THEN |
| 62 |
NEWELB(IFAC) = IE2ELB(IF2EL(IFAC)) |
| 63 |
ELSE |
| 64 |
NEWELB(IFAC) = NELBLK+1 |
| 65 |
END IF |
| 66 |
130 CONTINUE |
| 67 |
|
| 68 |
RETURN |
| 69 |
END |