Debian Codegraph @

packages/seacas/applications/algebra/ag_rwnmap.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 RWNMAP (NDBIN, NDBOUT, NUMNP, NUMNPO, IXNODE,
9 & MAPND, NEWIX)
10 C=======================================================================
11 C --*** RWNMAP *** (ALGEBRA) Read and write database node number map
12 C --
13 C --
14 C --Parameters:
15 C -- NDBIN, NDBOUT - IN - the input and output database file
16 C -- NUMNP - IN - the number of nodes
17 C -- NUMNPO - IN - the number of output nodes
18 C -- IXNODE - IN - the indices of the output nodes (iff NUMNPO <> NUMNP)
19 C -- IOERR - OUT - input/output error flag
20 C -- MAPND - SCRATCH - the node number map
21 C -- NEWIX - SCRATCH - size = NUMNP (iff NUMNPO <> NUMNP)
22
23 INTEGER IXNODE(*)
24 INTEGER MAPND(*)
25 INTEGER NEWIX(*)
26
27 call exgnnm(ndbin, mapnd, ierr)
28
29 IF ((NUMNPO .GT. 0) .AND. (NUMNP .NE. NUMNPO)) THEN
30 do ix = 1, numnpo
31 newix(ix) = mapnd(ixnode(ix))
32 end do
33 do ix = 1, numnpo
34 mapnd(ix) = newix(ix)
35 end do
36
37 END IF
38
39 call expnnm(ndbout, mapnd, ierr)
40
41 RETURN
42 END