32
33
34
36 use element_mod , only : nixc
37
38
39
40#include "implicit_f.inc"
41#include "comlock.inc"
42
43
44
45 INTEGER N, IXC(NIXC,*)
47 . x(3,*)
48
49
50
51 INTEGER SON,LEVEL,IP,NLEV,N1,N2,N3,N4
53 . x13,y13,z13,x24,y24,z24,nx,ny,nz,aaa
54
55 n1=ixc(2,n)
56 n2=ixc(3,n)
57 n3=ixc(4,n)
58 n4=ixc(5,n)
59
64
65 x13 = x(1,n3) - x(1,n1)
66 y13 = x(2,n3) - x(2,n1)
67 z13 = x(3,n3) - x(3,n1)
68
69 x24 = x(1,n4) - x(1,n2)
70 y24 = x(2,n4) - x(2,n2)
71 z24 = x(3,n4) - x(3,n2)
72
73 nx = y13*z24 - z13*y24
74 ny = z13*x24 - x13*z24
75 nz = x13*y24 - y13*x24
76
77 aaa=one/
max(em30,sqrt(nx*nx+ny*ny+nz*nz))
78 nx = nx * aaa
79 ny = ny * aaa
80 nz = nz * aaa
81
82 nodnorm(1,n1)=nodnorm(1,n1)+nx
83 nodnorm(2,n1)=nodnorm(2,n1)+ny
84 nodnorm(3,n1)=nodnorm(3,n1)+nz
85
86 nodnorm(1,n2)=nodnorm(1,n2)+nx
87 nodnorm(2,n2)=nodnorm(2,n2)+ny
88 nodnorm(3,n2)=nodnorm(3,n2)+nz
89
90 nodnorm(1,n3)=nodnorm(1,n3)+nx
91 nodnorm(2,n3)=nodnorm(2,n3)+ny
92 nodnorm(3,n3)=nodnorm(3,n3)+nz
93
94 nodnorm(1,n4)=nodnorm(1,n4)+nx
95 nodnorm(2,n4)=nodnorm(2,n4)+ny
96 nodnorm(3,n4)=nodnorm(3,n4)+nz
97
98 RETURN