Debian Codegraph @

packages/seacas/applications/blot/allal2.f

raw
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 ALLAL2 (LENF, IF2EL, IE2ELB, NEWELB)
9 C=======================================================================
10
11 C --*** ALLAL2 *** (MESH) Adjust for elements all alive (2D)
12 C -- Written by Amy Gilkey - revised 03/10/88
13 C --
14 C --ALLAL2 adjusts the face array to reflect all elements alive.
15 C --
16 C --Parameters:
17 C -- LENF - IN - the cumulative face counts by element block
18 C -- IF2EL - IN - the element number of each face
19 C -- IE2ELB - IN - the element block for each element
20 C -- NEWELB - OUT - size = LENF(NELBLK+1)
21 C --
22 C --Common Variables:
23 C -- Uses NELBLK of /DBNUMS/
24
25 include 'dbnums.blk'
26 include 'd3nums.blk'
27
28 INTEGER LENF(0:NELBLK+2)
29 INTEGER IF2EL(*)
30 INTEGER IE2ELB(NUMEL)
31 INTEGER NEWELB(*)
32
33 C --Leave live faces alone
34
35 DO 110 IELB = 1, NELBLK
36 DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB)
37 NEWELB(IFAC) = IELB
38 100 CONTINUE
39 110 CONTINUE
40
41 C --Move dead faces back to original set
42
43 IELB = NELBLK+2
44 DO 120 IFAC = LENF(IELB-1)+1, LENF(IELB)
45 NEWELB(IFAC) = IE2ELB(IF2EL(IFAC))
46 120 CONTINUE
47
48 RETURN
49 END