| 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 DBISTE (NDB, OPTION, ISTEP, NELBLK, TIME, |
| 9 |
& NVARGL, NVARNP, NVAREL, NUMNP, |
| 10 |
& IDELB, NUMELB, ISEVOK, |
| 11 |
& VARGL, VARNP, VAREL, IOERR) |
| 12 |
C======================================================================= |
| 13 |
C --*** DBISTE *** (EXOLIB) Read database variables for one time step |
| 14 |
C -- Written by Amy Gilkey - revised 10/14/87 |
| 15 |
C -- Modified for ExodusIIv2 database format 10/16/95 |
| 16 |
C -- |
| 17 |
C --DBISTE reads the database global, nodal, and element variables |
| 18 |
C --for one time step. |
| 19 |
C -- |
| 20 |
C --Parameters: |
| 21 |
C -- NDB - IN - the database number |
| 22 |
C -- OPTION - IN - ' ' to not store |
| 23 |
C -- '*' to store all, else store options: |
| 24 |
C -- 'G' to store global variables |
| 25 |
C -- 'E' to store element variables |
| 26 |
C -- 'N' to store nodal variables |
| 27 |
C -- ISTEP - IN - the time step number |
| 28 |
C -- NELBLK - IN - the number of element blocks |
| 29 |
C -- TIME - OUT - the time step time |
| 30 |
C -- NVARGL - IN - the number of global variables |
| 31 |
C -- NVARNP - IN - the number of nodal variables |
| 32 |
C -- NVAREL - IN - the number of element variables |
| 33 |
C -- NUMNP - IN - the number of nodes |
| 34 |
C -- IDELB - IN - the element block ID's |
| 35 |
C -- NUMELB - IN - the number of elements per block |
| 36 |
C -- ISEVOK - IN - the element block variable truth table; |
| 37 |
C -- variable i of block j exists iff ISEVOK(j,i) |
| 38 |
C -- VARGL - OUT - the global variables for the time step (if OPTION) |
| 39 |
C -- VARNP - OUT - the nodal variables for the time step (if OPTION) |
| 40 |
C -- VAREL - OUT - the element variables for the time step (if OPTION) |
| 41 |
C -- IOERR - OUT - I/O error flag |
| 42 |
|
| 43 |
INTEGER NDB |
| 44 |
CHARACTER*(*) OPTION |
| 45 |
INTEGER ISTEP |
| 46 |
INTEGER NELBLK |
| 47 |
REAL TIME |
| 48 |
INTEGER NVARGL, NVARNP, NVAREL, NUMNP |
| 49 |
INTEGER IDELB(*) |
| 50 |
INTEGER NUMELB(*) |
| 51 |
LOGICAL ISEVOK(*) |
| 52 |
REAL VARGL(*) |
| 53 |
REAL VARNP(*) |
| 54 |
REAL VAREL(*) |
| 55 |
INTEGER IOERR |
| 56 |
INTEGER EBID, NEPB |
| 57 |
|
| 58 |
C --Read step time |
| 59 |
|
| 60 |
CALL EXGTIM(NDB, ISTEP, TIME, IERR) |
| 61 |
|
| 62 |
C --Read global variables |
| 63 |
IF (NVARGL .GT. 0) THEN |
| 64 |
CALL EXGGV (NDB, ISTEP, NVARGL, VARGL, IERR) |
| 65 |
END IF |
| 66 |
|
| 67 |
C --Read nodal variables |
| 68 |
IF (NVARNP .GT. 0) THEN |
| 69 |
INP = 1 |
| 70 |
DO 10 I = 1, NVARNP |
| 71 |
CALL EXGNV (NDB, ISTEP, I, NUMNP, VARNP(INP), IERR) |
| 72 |
INP = INP + NUMNP |
| 73 |
10 CONTINUE |
| 74 |
END IF |
| 75 |
|
| 76 |
C --Read element variables |
| 77 |
|
| 78 |
IF (NVAREL .GT. 0) THEN |
| 79 |
IEL = 1 |
| 80 |
DO 20 I = 1, NELBLK |
| 81 |
EBID = IDELB(I) |
| 82 |
NEPB = NUMELB(I) |
| 83 |
DO 30 J = 1, NVAREL |
| 84 |
CALL EXGEV(NDB,ISTEP,J,EBID,NEPB,VAREL(IEL),IERR) |
| 85 |
IEL = IEL + NEPB |
| 86 |
30 CONTINUE |
| 87 |
20 CONTINUE |
| 88 |
END IF |
| 89 |
|
| 90 |
RETURN |
| 91 |
END |