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