You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
C Copyright(C) 1999-2020 National Technology & Engineering Solutions
|
|
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
|
|
C NTESS, the U.S. Government retains certain rights in this software.
|
|
C
|
|
C See packages/seacas/LICENSE for details
|
|
|
|
C=======================================================================
|
|
SUBROUTINE DBIST1 (NDB, NVARNP, NVARDM, NUMNP, VARNP, IVAR, *)
|
|
C=======================================================================
|
|
|
|
C --*** DBIST1 *** (EXOLIB) Internal to DBISTE, Read nodal variables
|
|
C -- Written by Greg Sjaardema 8/8/90, to remove MAX from dimensions
|
|
C --
|
|
C --DBIST1 reads the database nodal variables for one time step.
|
|
C --
|
|
C --Parameters:
|
|
C -- NDB - IN - the database number
|
|
C -- NVARNP - IN - the number of nodal variables
|
|
C -- NVARDM - IN - the row dimension of VARNP
|
|
C -- NUMNP - IN - the number of nodes
|
|
C -- VARNP - OUT - the nodal variables for the time step (if OPTION)
|
|
C -- IVAR - OUT - the nodal variable number if error on read.
|
|
C -- * - return statement if error encountered, including end-of-file;
|
|
C -- message is printed
|
|
C --
|
|
INTEGER NDB
|
|
INTEGER NVARNP, NVARDM, NUMNP
|
|
REAL VARNP(NVARDM,*)
|
|
|
|
DO 100 IVAR = 1, NVARNP
|
|
READ (NDB, END=190, ERR=190, IOSTAT=IERR)
|
|
& (VARNP(IVAR,INP), INP=1,NUMNP)
|
|
100 CONTINUE
|
|
RETURN
|
|
190 CONTINUE
|
|
RETURN 1
|
|
END
|
|
|