1!
2!     CalculiX - A 3-dimensional finite element program
3!     Copyright (C) 1998-2021 Guido Dhondt
4!
5!     This program is free software; you can redistribute it and/or
6!     modify it under the terms of the GNU General Public License as
7!     published by the Free Software Foundation(version 2);
8!
9!
10!     This program is distributed in the hope that it will be useful,
11!     but WITHOUT ANY WARRANTY; without even the implied warranty of
12!     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13!     GNU General Public License for more details.
14!
15!     You should have received a copy of the GNU General Public License
16!     along with this program; if not, write to the Free Software
17!     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18!
19!
20!     subroutine to find the right node for different element types
21!     based on face number jface and node number ii
22!
23      integer function getnodel(ii,jface,nope)
24!
25!     author: Saskia Sitzmann
26!
27      implicit none
28!
29      integer ii,jface,nope,
30     &        ifaceq(8,6),ifacet(6,4),ifacew1(4,5),ifacew2(8,5)
31!
32      include "gauss.f"
33!
34      data ifaceq /4,3,2,1,11,10,9,12,
35     &            5,6,7,8,13,14,15,16,
36     &            1,2,6,5,9,18,13,17,
37     &            2,3,7,6,10,19,14,18,
38     &            3,4,8,7,11,20,15,19,
39     &            4,1,5,8,12,17,16,20/
40      data ifacet /1,3,2,7,6,5,
41     &             1,2,4,5,9,8,
42     &             2,3,4,6,10,9,
43     &             1,4,3,8,10,7/
44!
45      data ifacew1 /1,3,2,0,
46     &             4,5,6,0,
47     &             1,2,5,4,
48     &             2,3,6,5,
49     &             3,1,4,6/
50!
51!     nodes per face for quadratic wedge elements
52!
53      data ifacew2 /1,3,2,9,8,7,0,0,
54     &             4,5,6,10,11,12,0,0,
55     &             1,2,5,4,7,14,10,13,
56     &             2,3,6,5,8,15,11,14,
57     &             3,1,4,6,9,13,12,15/
58!
59      getnodel=0
60!
61      if((nope.eq.20).or.(nope.eq.8)) then
62               getnodel=ifaceq(ii,jface)
63      elseif((nope.eq.10).or.(nope.eq.4)) then
64         getnodel=ifacet(ii,jface)
65      elseif(nope.eq.6) then
66         getnodel=ifacew1(ii,jface)
67      else
68         getnodel=ifacew2(ii,jface)
69      endif
70!
71      end
72!
73