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