| 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 DBOELB (NDB, NELBS, NELBE, |
| 9 |
& IDELB, NUMELB, NUMLNK, NUMATR, LINK, NAMELB, ATRIB) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** DBOELB *** (EXOLIB) Write database element blocks |
| 13 |
C -- Written by Amy Gilkey - revised 10/12/87 |
| 14 |
C -- |
| 15 |
C --DBOELB writes the element block information to the database. |
| 16 |
C --Some dynamic dimensioning is done. |
| 17 |
C -- |
| 18 |
C --Parameters: |
| 19 |
C -- NDB - IN - the database file |
| 20 |
C -- NELBS, NELBE - IN - the number of first and last element blocks |
| 21 |
C -- to write |
| 22 |
C -- IDELB - IN - the element block IDs for each block |
| 23 |
C -- NUMELB - IN - the number of elements in each block |
| 24 |
C -- NUMLNK - IN - the number of nodes per element in each block |
| 25 |
C -- NUMATR - IN - the number of attributes in each block |
| 26 |
C -- LINK - IN - the connectivity for each block |
| 27 |
C -- ATRIB - IN - the attributes for each block |
| 28 |
C -- |
| 29 |
include 'exodusII.inc' |
| 30 |
|
| 31 |
INTEGER NDB |
| 32 |
INTEGER IDELB(*) |
| 33 |
INTEGER NUMELB(*) |
| 34 |
INTEGER NUMLNK(*) |
| 35 |
INTEGER NUMATR(*) |
| 36 |
INTEGER LINK(*) |
| 37 |
REAL ATRIB(*) |
| 38 |
CHARACTER*(mxstln) NAMELB(*) |
| 39 |
|
| 40 |
IELNK = 0 |
| 41 |
IEATR = 0 |
| 42 |
|
| 43 |
DO 100 NELB = NELBS, NELBE |
| 44 |
IELB = NELB-NELBS+1 |
| 45 |
|
| 46 |
call expelb(ndb, IDELB(IELB), NAMELB(IELB), NUMELB(IELB), |
| 47 |
& NUMLNK(IELB), NUMATR(IELB), IERR) |
| 48 |
|
| 49 |
ISLNK = IELNK + 1 |
| 50 |
IELNK = IELNK + NUMLNK(IELB) * NUMELB(IELB) |
| 51 |
ISATR = IEATR + 1 |
| 52 |
IEATR = IEATR + NUMATR(IELB) * NUMELB(IELB) |
| 53 |
|
| 54 |
call expelc(ndb, idelb(ielb), link(islnk), ierr) |
| 55 |
|
| 56 |
if (numatr(ielb) .gt. 0) then |
| 57 |
call expeat(ndb, idelb(ielb), atrib(isatr), ierr) |
| 58 |
end if |
| 59 |
100 CONTINUE |
| 60 |
|
| 61 |
RETURN |
| 62 |
END |