Debian Codegraph @

packages/seacas/applications/ex2ex1v2/ex2_dboeb1.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 DBOEB1 (NDB, IELB, NUMELB, NUMLNK, NUMATR, LINK, ATRIB,
9 $ NLNKDM, NATRDM)
10 C=======================================================================
11
12 C --*** DBOEB1 *** (EXOLIB) Write database element block misc.
13 C -- Written by Amy Gilkey - revised 10/12/87
14 C --
15 C --DBOEB1 writes the element block connectivity and attribute information
16 C --to the database.
17 C --
18 C --Parameters:
19 C -- NDB - IN - the database file
20 C -- IELB - IN - the element block number
21 C -- NUMELB - IN - the number of elements in the block
22 C -- NUMLNK - IN - the number of nodes per element
23 C -- NUMATR - IN - the number of attributes
24 C -- LINK - IN - the element connectivity for this block
25 C -- ATRIB - IN - the attributes for this block
26 C --
27 C --Database must be positioned at start of element block misc. information
28 C --upon entry; upon exit at end of element block misc. information.
29
30 INTEGER NDB
31 INTEGER NUMELB, NUMLNK, NUMATR
32 INTEGER LINK(NLNKDM,*)
33 REAL ATRIB(NATRDM,*)
34
35 IF ((NUMLNK .GT. 0) .AND. (NUMELB .GT. 0)) THEN
36 WRITE (NDB) ((LINK(I,NE), I=1,NUMLNK), NE=1,NUMELB)
37 ELSE
38 WRITE (NDB) 0
39 END IF
40
41 IF ((NUMATR .GT. 0) .AND. (NUMELB .GT. 0)) THEN
42 WRITE (NDB) ((ATRIB(I,NE), I=1,NUMATR), NE=1,NUMELB)
43 ELSE
44 WRITE (NDB) 0
45 END IF
46
47 RETURN
48 END