Debian Codegraph @

packages/seacas/applications/explore/exp_rdcord.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 C=======================================================================
7 SUBROUTINE RDCORD (NDB, NDIM, NUMNP, CORD, NAMECO, ISEOF, NAMLEN)
8 C=======================================================================
9
10 C --*** RDCORD *** (EXPLORE) Read database coordinates
11 C --
12 C --RDCORD reads the coordinate array from the database. An error
13 C --message is displayed if the end of file is read.
14 C --
15 C --Parameters:
16 C -- NDB - IN - the database file
17 C -- NDIM - IN - the number of coordinates per node
18 C -- NUMNP - IN - the number of nodes
19 C -- CORD - OUT - the coordinates
20 C -- ISEOF - IN/OUT - set true if end of file read
21 C --
22 C --Database must be positioned at start of coordinates upon entry;
23 C --upon exit at end of coordinates.
24
25 include 'exodusII.inc'
26
27 REAL CORD(NUMNP,*)
28 CHARACTER*(NAMLEN) NAMECO(*)
29 LOGICAL ISEOF
30
31 CHARACTER*80 ERRMSG
32
33 CALL INIREA (NDIM*NUMNP, 0.0, CORD)
34 CALL INISTR (NDIM, '--------------------------------', NAMECO)
35
36 if (NDIM .gt. 0) then
37 call exgcor(ndb, cord(1,1), cord(1,2), cord(1,3), ierr)
38 if (ierr .ne. 0) go to 100
39
40 call exgcon(ndb, nameco, ierr)
41 if (ierr .ne. 0) go to 105
42 end if
43
44 RETURN
45
46 100 CONTINUE
47 WRITE (ERRMSG, 10000) 'COORDINATES'
48 GOTO 110
49 105 CONTINUE
50 WRITE (ERRMSG, 10000) 'COORDINATE NAMES'
51 GOTO 110
52 110 CONTINUE
53 CALL WDBERR (IERR, ERRMSG)
54 ISEOF = .TRUE.
55 RETURN
56
57 10000 FORMAT (A)
58 END