| 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 |
C======================================================================= |
| 7 |
SUBROUTINE RDSTEP (ISTEP, TIME, NUMELB, IDELB, ISEVOK, |
| 8 |
& VISELB, MAXNE, VARVAL, MERR) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** RDSTEP *** (ALGEBRA) Read database time step variables |
| 12 |
C -- Written by Amy Gilkey - revised 11/30/87 |
| 13 |
C -- Modified 8/30/95 |
| 14 |
C -- |
| 15 |
C --RDSTEP reads the input database variables for one time step and |
| 16 |
C --stores the ones used in the equations in array VARVAL. |
| 17 |
C -- |
| 18 |
C --Parameters: |
| 19 |
C -- ISTEP - IN - the time step number |
| 20 |
C -- TIME - IN - the time step time |
| 21 |
C -- NUMELB - IN - the number of elements per block |
| 22 |
C -- ISEVOK - IN - the element block variable truth table; |
| 23 |
C -- variable i of block j exists iff ISEVOK(j,i) |
| 24 |
C -- MAXNE - IN - the VARVAL dimension |
| 25 |
C -- VARVAL - OUT - the input data needed |
| 26 |
C -- MERR - OUT - error flag |
| 27 |
C -- |
| 28 |
C --Common Variables: |
| 29 |
C -- Uses ITIME, IGVBEG, INVBEG, IEVBEG, IGVEND, INVEND, IEVEND |
| 30 |
C -- of /DBXVAR/ |
| 31 |
|
| 32 |
include 'ag_namlen.blk' |
| 33 |
include 'ag_var.blk' |
| 34 |
include 'ag_dbase.blk' |
| 35 |
include 'ag_dbnums.blk' |
| 36 |
include 'ag_dbxvar.blk' |
| 37 |
|
| 38 |
PARAMETER (ICURTM = 1, ILSTTM = 2, IONETM = 3) |
| 39 |
|
| 40 |
INTEGER NUMELB(*) |
| 41 |
INTEGER IDELB(*) |
| 42 |
LOGICAL ISEVOK(NELBLK*NVAREL) |
| 43 |
LOGICAL VISELB(NELBLK) |
| 44 |
REAL VARVAL(MAXNE,*) |
| 45 |
INTEGER MERR |
| 46 |
MERR = 0 |
| 47 |
|
| 48 |
C --Assign time to time/history/globals entry |
| 49 |
VARVAL(IDVAR(ITIME),ISTVAR(ICURTM,ITIME)) = TIME |
| 50 |
|
| 51 |
C --Read global variables |
| 52 |
|
| 53 |
IF (IGVBEG .LE. IGVEND) THEN |
| 54 |
CALL STORE (ISTEP, 'G', IGVBEG, IGVEND, NVARGL, |
| 55 |
& NUMELB, IDELB, ISEVOK, VISELB, MAXNE, VARVAL, MERR) |
| 56 |
IF (MERR .EQ. 1) RETURN |
| 57 |
END IF |
| 58 |
|
| 59 |
C --Read nodal variables |
| 60 |
|
| 61 |
IF (INVBEG .LE. INVEND) THEN |
| 62 |
CALL STORE (ISTEP, 'N', INVBEG, INVEND, NUMNP, |
| 63 |
& NUMELB, IDELB, ISEVOK, VISELB, MAXNE, VARVAL, MERR) |
| 64 |
IF (MERR .EQ. 1) RETURN |
| 65 |
END IF |
| 66 |
|
| 67 |
C --Read element variables |
| 68 |
|
| 69 |
IF (IEVBEG .LE. IEVEND) THEN |
| 70 |
CALL STORE (ISTEP, 'E', IEVBEG, IEVEND, NUMEL, |
| 71 |
& NUMELB, IDELB, ISEVOK, VISELB, MAXNE, VARVAL, MERR) |
| 72 |
IF (MERR .EQ. 1) RETURN |
| 73 |
END IF |
| 74 |
|
| 75 |
RETURN |
| 76 |
END |