| 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 DBMIR1 (IELB, NUMELB, NUMLNK, LINK) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** DBMIR1 *** (GEN3D) Fixup element connectivity for reflections |
| 12 |
C -- Written by Greg Sjaardema - revised 02/10/89 |
| 13 |
C -- Modified from DBOEB1 Written by Amy Gilkey |
| 14 |
C -- |
| 15 |
C --Parameters: |
| 16 |
C -- IELB - IN - the element block number |
| 17 |
C -- NUMELB - IN - the number of elements in the block |
| 18 |
C -- NUMLNK - IN - the number of nodes per element |
| 19 |
C -- LINK - IN/OUT - the element connectivity for this block |
| 20 |
C -- |
| 21 |
|
| 22 |
INTEGER NUMELB, NUMLNK |
| 23 |
INTEGER LINK(NUMLNK,NUMELB) |
| 24 |
|
| 25 |
IF ((NUMLNK .EQ. 8) .AND. (NUMELB .GT. 0)) THEN |
| 26 |
DO 10 NE = 1, NUMELB |
| 27 |
ILTMP = LINK (2,NE) |
| 28 |
LINK(2,NE) = LINK(4,NE) |
| 29 |
LINK(4,NE) = ILTMP |
| 30 |
|
| 31 |
ILTMP = LINK (6,NE) |
| 32 |
LINK(6,NE) = LINK(8,NE) |
| 33 |
LINK(8,NE) = ILTMP |
| 34 |
10 CONTINUE |
| 35 |
END IF |
| 36 |
|
| 37 |
RETURN |
| 38 |
END |