| 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 FNODES (IFACE, LINKE, NODEF) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** FNODES *** (MESH) Get nodes for element's face |
| 12 |
C -- Written by Amy Gilkey - revised 05/23/86 |
| 13 |
C -- Sam Key, 03/01/85 |
| 14 |
C -- |
| 15 |
C --FNODES returns the nodes for a given face of a hexahedral element. |
| 16 |
C --The 4-tuple sequence defining the face is counter-clockwise looking |
| 17 |
C --into the element. |
| 18 |
C -- |
| 19 |
C --Parameters: |
| 20 |
C -- IFACE - IN - the face number |
| 21 |
C -- LINKE - IN - the hexahedral element connectivity |
| 22 |
C -- NODEF - OUT - the nodes in the extracted face |
| 23 |
|
| 24 |
INTEGER LINKE(8), NODEF(4) |
| 25 |
|
| 26 |
INTEGER KFACE(4,6) |
| 27 |
SAVE KFACE |
| 28 |
C --KFACE(*,i) - the indices of the 4 nodes in face i |
| 29 |
|
| 30 |
DATA KFACE / 1, 4, 3, 2, 5, 6, 7, 8, |
| 31 |
& 3, 4, 8, 7, 2, 3, 7, 6, 1, 2, 6, 5, 1, 5, 8, 4 / |
| 32 |
|
| 33 |
DO 100 K = 1, 4 |
| 34 |
NODEF(K) = LINKE(KFACE(K,IFACE)) |
| 35 |
100 CONTINUE |
| 36 |
|
| 37 |
RETURN |
| 38 |
END |