| 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 SELMAP (NOUT, TYPE, IDGLO, NUMEL, MAPEL) |
| 8 |
C======================================================================= |
| 9 |
|
| 10 |
C --SELMAP locates the local node corresponding to the global id |
| 11 |
C -- |
| 12 |
C --Parameters: |
| 13 |
C -- NOUT - IN - the output file, <=0 for standard |
| 14 |
C -- TYPE - IN - 'node' or 'element' |
| 15 |
C -- NUMEL - IN - the number of node/elements |
| 16 |
C -- MAPEL - IN - the node/element number map |
| 17 |
|
| 18 |
C ... TYPE = Node or Element |
| 19 |
CHARACTER*(*) TYPE |
| 20 |
INTEGER MAPEL(*) |
| 21 |
|
| 22 |
CHARACTER*128 STRA |
| 23 |
|
| 24 |
LOGICAL FOUND |
| 25 |
|
| 26 |
found = .FALSE. |
| 27 |
do 80 i = 1, numel |
| 28 |
if (idglo .eq. mapel(i)) then |
| 29 |
found = .TRUE. |
| 30 |
IF (NOUT .GT. 0) THEN |
| 31 |
write (nout, 10030) TYPE, IDGLO, TYPE, I |
| 32 |
ELSE |
| 33 |
write (*, 10030) TYPE, IDGLO, TYPE, I |
| 34 |
END IF |
| 35 |
go to 90 |
| 36 |
end if |
| 37 |
80 continue |
| 38 |
90 continue |
| 39 |
if (.not. found) then |
| 40 |
write (stra, 10000) type, idglo |
| 41 |
call sqzstr(stra, lstra) |
| 42 |
call prterr('WARNING', stra(:lstra)) |
| 43 |
end if |
| 44 |
RETURN |
| 45 |
|
| 46 |
10000 FORMAT (' No local ',A,' has global id equal to ',I12) |
| 47 |
10030 format (1x, 3x, 'Global ',A,I12,' is local ',A,I12) |
| 48 |
END |