Debian Codegraph @

packages/seacas/applications/explore/exp_rdmap.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 RDMAP (NDB, NUMEL, MAPEL, ISEOF)
8 C=======================================================================
9
10 C --*** RDMAP *** (EXPLORE) Read database element order map
11 C --
12 C --RDMAP reads the element 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 -- NUMEL - IN - the number of elements
18 C -- MAPEL - OUT - the element order map
19 C -- ISEOF - IN/OUT - set true if end of file read
20
21 include 'exodusII.inc'
22
23 INTEGER MAPEL(*)
24 LOGICAL ISEOF
25
26 CHARACTER*80 ERRMSG
27
28 CALL INIINT (NUMEL, 0, MAPEL)
29
30 C ... Don't warn about no map stored in file
31 call exopts (0, ierr1)
32 call exgenm(ndb, mapel, 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, numel
38 mapel(i) = i
39 10 continue
40 end if
41
42 RETURN
43
44 100 CONTINUE
45 WRITE (ERRMSG, 10000) 'ELEMENT 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