| 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 DBIGN (NDB, NUMESS, IDESS, NNESS, IXNESS, |
| 9 |
& LTNESS, LTNNN, IOERR) |
| 10 |
C======================================================================= |
| 11 |
C --*** DBIGN *** Get node from the side sets |
| 12 |
C -- Written 9/10/95 for ExodusIIv2 |
| 13 |
C -- |
| 14 |
C --Parameters: |
| 15 |
C -- NDB - IN - the database number |
| 16 |
C -- NUMESS - IN - number of side sets |
| 17 |
C -- IDESS - OUT - array of side set IDS |
| 18 |
C -- NNESS - OUT - array of the number of nodes for each side set |
| 19 |
C -- IXNESS - OUT - array of indices into LTNESS - 1st node each set |
| 20 |
C -- LTNESS - OUT - array of nodes for all side sets |
| 21 |
C -- LTNNN - OUT _ array of number of nodes for each side in a side sets |
| 22 |
C -- IOERR - OUT - error flag |
| 23 |
|
| 24 |
INTEGER NDB |
| 25 |
INTEGER NUMESS |
| 26 |
INTEGER IDESS(*) |
| 27 |
INTEGER NNESS(*) |
| 28 |
INTEGER IXNESS(*) |
| 29 |
INTEGER LTNESS(*) |
| 30 |
INTEGER LTNNN(*) |
| 31 |
INTEGER IOERR |
| 32 |
IOERR = 0 |
| 33 |
|
| 34 |
C Offset into element list of current side set |
| 35 |
ISOFF = 0 |
| 36 |
C Node count for current side set |
| 37 |
NODCNT = 0 |
| 38 |
DO 100 I = 1, NUMESS |
| 39 |
C Set index of the first node for each side set in LTNESS |
| 40 |
IXNESS(I) = NODCNT + 1 |
| 41 |
CALL EXGSP(NDB, IDESS(I), NSIDE, NDIST, IOERR) |
| 42 |
C NSIDE - number of sides in side set IDESS(I) |
| 43 |
C NDIST - number of distribution factors in side set IDESS(I) |
| 44 |
IF (IOERR .EQ. 1) RETURN |
| 45 |
|
| 46 |
CALL exgssn(NDB, IDESS(I), LTNNN(ISOFF+1), |
| 47 |
& LTNESS(NODCNT+1), IOERR) |
| 48 |
C LTNNN(ISOFF+1) - number of nodes for each side in side set IDESS(I) |
| 49 |
C LTNESS(NODCNT+1) - nodes for current set |
| 50 |
IF (IOERR .EQ. 1) RETURN |
| 51 |
C Calculate node count sum for the current side set |
| 52 |
NCSUM = 0 |
| 53 |
DO 90 J = 0, NSIDE-1 |
| 54 |
NCSUM = NCSUM + LTNNN(ISOFF+1+J) |
| 55 |
90 CONTINUE |
| 56 |
NNESS(I) = NCSUM |
| 57 |
NODCNT = NODCNT + NCSUM |
| 58 |
ISOFF = ISOFF + NSIDE |
| 59 |
100 CONTINUE |
| 60 |
|
| 61 |
RETURN |
| 62 |
END |