Debian Codegraph @

packages/seacas/applications/gen3d/g3_newmap.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 NEWMAP (MAPEL, MAPEL3, IXEL, INCEL, NREL, IELCOL)
9 C=======================================================================
10
11 C --*** NEWMAP *** (GEN3D) Calculate 3D element order map
12 C -- Written by Amy Gilkey - revised 05/05/86
13 C --
14 C --NEWMAP calculates the element order map for the 3D database.
15 C --
16 C --Parameters:
17 C -- MAPEL - IN - the 2D element order map
18 C -- MAPEL3 - OUT - the 3D element order map
19 C -- IXEL - IN - the new index for each element
20 C -- INCEL - IN - the increment for each element, needed for blocks
21 C -- that become multiple blocks
22 C -- NREL - IN - the number of new elements generated for each element
23 C -- IELCOL - IN - the row number for each element, 0 if not needed
24 C --
25 C --Common Variables:
26 C -- Uses NUMEL of /DBNUMS/
27 C -- Uses NUMNP3 of /DBNUM3/
28 C -- Uses NEREPL of /PARAMS/
29
30 INCLUDE 'g3_dbnums.blk'
31 INCLUDE 'g3_dbnum3.blk'
32 INCLUDE 'g3_params.blk'
33
34 INTEGER MAPEL(NUMEL), MAPEL3(NUMEL3)
35 INTEGER IXEL(*), INCEL(*), NREL(*), IELCOL(*)
36
37 C --Element order map - add on elements for each plate/slice
38 C ... To avoid potential numbering conflicts, we throw away the old map and just create a
39 C dummy map from 1..numel3
40
41 DO 20 I = 1, NUMEL3
42 MAPEL3(I) = I
43 20 CONTINUE
44
45 RETURN
46 END