Debian Codegraph @

packages/seacas/applications/blot/allcut.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 ALLCUT (IE2ELB, LENF, IF2EL, IF2EL2, NEWELB)
9 C=======================================================================
10
11 C --*** ALLCUT *** (MESH) Uncut 3D mesh
12 C -- Written by Amy Gilkey - revised 03/08/88
13 C --
14 C --ALLCUT restores a cut 3D mesh to a whole mesh.
15 C --
16 C --Parameters:
17 C -- IE2ELB - IN - the element block for each element
18 C -- LENF - IN - the cumulative face counts by element block
19 C -- IF2EL - IN - the element number of each face
20 C -- IF2EL2 - IN - the secondary element number of each face
21 C -- NEWELB - OUT - size = LENF(NELBLK+1)
22 C --
23 C --Common Variables:
24 C -- Uses NELBLK of /DBNUMS/
25
26 include 'dbnums.blk'
27 include 'd3nums.blk'
28
29 INTEGER IE2ELB(NUMEL)
30 INTEGER LENF(0:NELBLK+3)
31 INTEGER IF2EL(*), IF2EL2(*)
32 INTEGER NEWELB(*)
33
34 C --Move the interior surface faces back to the interior set
35
36 DO 110 IELB = 1, NELBLK+3
37 DO 100 IFAC = LENF(IELB-1)+1, LENF(IELB)
38 IF (IF2EL2(IFAC) .LE. 0) THEN
39 NEWELB(IFAC) = IELB
40 ELSE
41 NEWELB(IFAC) = NELBLK+1
42 END IF
43 100 CONTINUE
44 110 CONTINUE
45
46 C --Move the faces that were OUT to their original set
47
48 IELB = NELBLK+3
49 DO 120 IFAC = LENF(IELB-1)+1, LENF(IELB)
50 IF (IF2EL2(IFAC) .LE. 0) THEN
51 NEWELB(IFAC) = IE2ELB(IF2EL(IFAC))
52 ELSE
53 NEWELB(IFAC) = NELBLK+1
54 END IF
55 120 CONTINUE
56
57 RETURN
58 END