Debian Codegraph @

packages/seacas/applications/explore/exp_rdnmap.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 RDNMAP (NDB, NUMNP, MAPNO, ISEOF)
8 C=======================================================================
9
10 C --*** RDNMAP *** (EXPLORE) Read database node order map
11 C --
12 C --RDMAP reads the node order map 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 -- NUMNP - IN - the number of nodes
18 C -- MAPNO - OUT - the node order map
19 C -- ISEOF - IN/OUT - set true if end of file read
20
21 include 'exodusII.inc'
22
23 INTEGER MAPNO(*)
24 LOGICAL ISEOF
25
26 CHARACTER*80 ERRMSG
27
28 CALL INIINT (NUMNP, 0, MAPNO)
29
30 C ... Don't warn about no map stored in file
31 call exopts (0, ierr1)
32 call exgnnm(ndb, mapno, ierr)
33 call exopts (EXVRBS, ierr1)
34 if (ierr .lt. 0) then
35 go to 100
36 else if (ierr .ne. 0) then
37 do 10 i=1, numnp
38 mapno(i) = i
39 10 continue
40 end if
41
42 RETURN
43
44 100 CONTINUE
45 WRITE (ERRMSG, 10000) 'NODE ORDER MAP'
46 GOTO 110
47 110 CONTINUE
48 CALL WDBERR (IERR, ERRMSG)
49 ISEOF = .TRUE.
50
51 RETURN
52
53 10000 FORMAT (A)
54 END