Debian Codegraph @

packages/seacas/applications/ex1ex2v2/ex1_dbist1.f

raw
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 DBIST1 (NDB, NVARNP, NUMNP, VARNP, IVAR, *)
9 C=======================================================================
10 C --*** DBIST1 *** (EXOLIB) Internal to DBISTE, Read nodal variables
11 C --
12 C --DBIST1 reads the database nodal variables for one time step.
13 C --
14 C --Parameters:
15 C -- NDB - IN - the database number
16 C -- NVARNP - IN - the number of nodal variables
17 C -- NUMNP - IN - the number of nodes
18 C -- VARNP - OUT - the nodal variables for the time step (if OPTION)
19 C -- IVAR - OUT - the nodal variable number if error on read.
20 C -- * - return statement if error encountered, including end-of-file;
21 C -- message is printed
22 C --
23 INTEGER NDB
24 INTEGER NVARNP, NUMNP
25 REAL VARNP(*)
26
27 iov = 0
28 DO 100 IVAR = 1, NVARNP
29 READ (NDB, END=190, ERR=190, IOSTAT=IERR)
30 & (VARNP(iov+INP), INP=1,NUMNP)
31 iov = iov+numnp
32 100 CONTINUE
33 RETURN
34 190 CONTINUE
35 RETURN 1
36 END