Debian Codegraph @

packages/seacas/applications/ex2ex1v2/ex2_dbonps.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 DBONPS (NDB, NUMNPS, LNPSNL,
9 & IDNPS, NNNPS, IXNNPS, LTNNPS, FACNPS)
10 C=======================================================================
11
12 C --*** DBONPS *** (EXOLIB) Write database node sets
13 C -- Written by Amy Gilkey - revised 02/27/86
14 C --
15 C --DBONPS writes the node set information to the database.
16 C --
17 C --Parameters:
18 C -- NDB - IN - the database file
19 C -- NUMNPS - IN - the number of node sets
20 C -- LNPSNL - IN - the length of the node sets node list
21 C -- IDNPS - IN - the node set ID for each set
22 C -- NNNPS - IN - the number of nodes for each set
23 C -- IXNNPS - IN - the index of the first node for each set
24 C -- LTNNPS - IN - the nodes for all sets
25 C -- FACNPS - IN - the distribution factors for all sets
26 C --
27 C --Database must be positioned at start of node set information
28 C --upon entry; upon exit at end of node set information.
29
30 INTEGER NDB
31 INTEGER NUMNPS, LNPSNL
32 INTEGER IDNPS(*)
33 INTEGER NNNPS(*)
34 INTEGER IXNNPS(*)
35 INTEGER LTNNPS(*)
36 REAL FACNPS(*)
37
38 IF (NUMNPS .GT. 0) THEN
39 WRITE (NDB) (IDNPS(INPS), INPS=1,NUMNPS)
40 WRITE (NDB) (NNNPS(INPS), INPS=1,NUMNPS)
41 WRITE (NDB) (IXNNPS(INPS), INPS=1,NUMNPS)
42 ELSE
43 WRITE (NDB) 0
44 WRITE (NDB) 0
45 WRITE (NDB) 0
46 END IF
47 IF (LNPSNL .GT. 0) THEN
48 WRITE (NDB) (LTNNPS(NL), NL=1,LNPSNL)
49 WRITE (NDB) (FACNPS(NL), NL=1,LNPSNL)
50 ELSE
51 WRITE (NDB) 0
52 WRITE (NDB) 0
53 END IF
54
55 RETURN
56 END