Debian Codegraph @

packages/seacas/applications/genshell/gs_newini.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 NEWINI (IDNSUR, IDESUR, NSSUR, NUMATR)
9 C=======================================================================
10
11 C --*** NEWINI *** (GEN3D) Calculate 3D initial variables
12 C -- Written by Amy Gilkey - revised 09/02/87
13 C --
14 C --NEWINI calculates the initial variables for the 3D database.
15 C --The output number of nodes and elements and the length of the node
16 C --sets and the side sets must be calculated before NEWINI is called.
17 C --
18 C --Parameters:
19 C -- IDNSUR - IN - the number of surface node sets
20 C -- IDESUR - IN - the number of surface side sets
21 C -- NSSUR - IN - the number of nodes in the surface side set
22 C --
23 C --Common Variables:
24 C -- Uses NDIM, NUMNP, NUMEL, NELBLK,
25 C -- NUMNPS, LNPSNL, NUMESS, LESSEL, LESSNL of /DBNUMS/
26 C -- Uses NUMNP3, NUMEL3, LNPSN3, LESSE3, LESSN3 of /DBNUM3/
27 C -- Uses LNPSNO, LESSEO, LESSNO of /DBNUM3/
28 C -- Sets NUMNP3, NDIM3, NUMEL3, NELBL3,
29 C -- NNPS3, LNPSN3, NESS3, LESSE3, LESSN3 of /DBNUM3/
30 C -- Uses NNREPL, NEREPL of /PARAMS/
31
32 include 'exodusII.inc'
33 INCLUDE 'gs_dbtitl.blk'
34 INCLUDE 'gs_dbnums.blk'
35 INCLUDE 'gs_dbnum3.blk'
36 INCLUDE 'gs_params.blk'
37
38 INTEGER NUMATR(NELBLK)
39
40 C --Database title - unchanged
41
42 CONTINUE
43
44 C --Number of dimensions
45
46 NDIM3 = 3
47
48 C --Number of nodes and elements - unchanged
49
50 NUMNP3 = NUMNP
51 NUMEL3 = NUMEL
52
53 C --Number of element blocks
54
55 NELBL3 = NELBLK
56
57 C --Lengths of node sets set by NEWNPS
58 C --Lengths of side sets set by NEWESS
59
60 C --Number and lengths of sets, including front and back sets
61
62 NNPS3 = NUMNPS + IDNSUR
63 LNPSN3 = LNPSNO + IDNSUR*NUMNP
64 NESS3 = NUMESS + IDESUR
65 LESSE3 = LESSEO + IDESUR*NUMEL
66 LESSN3 = LESSNO + IDESUR*NSSUR
67
68 C --Number of attributes per block = 1
69
70 DO 10 IBLK = 1, NELBLK
71 NUMATR(IBLK) = 1
72 10 CONTINUE
73
74 RETURN
75 END