33
34
35
36#include "implicit_f.inc"
37
38
39
40 INTEGER NIR,I
42 . s,t,ls1,ls2,lt1,lt2,ls,lt
44 . h(4),hh(4),hrs(4),hrt(4),hps(4),hpt(4),hprs(4),hprt(4),
45 . hxs(4),hxt(4)
46
47
48
50 . slm,slp,tlm,tlp,shm,shp,thm,thp,sm2,sp2,tm2,tp2,srm,srp,trm,trp,
51 . srpm,srpp,trpm,trpp,s2,s3,t2,t3
52
53
54
55 s2 = s*s
56 s3 = s*s2
57 t2 = t*t
58 t3 = t*t2
59
60 slm = (one - s)*half
61 slp = (one + s)*half
62 tlm = (one - t)*half
63 tlp = (one + t)*half
64
65 ls = tlm*ls1 + tlp*ls2
66 lt = slm*lt1 + slp*lt2
67
68 sm2 = slm*slm
69 sp2 = slp*slp
70 tm2 = tlm*tlm
71 tp2 = tlp*tlp
72
73 h(1) = slm*tlm
74 h(2) = slp*tlm
75 h(3) = slp*tlp
76 h(4) = slm*tlp
77
78
79
80
81
82
83
84
85
86 hh(1) = slm*tlm*(one - s*slp - t*tlp)
87 hh(2) = slp*tlm*(one + s*slm - t*tlp)
88 hh(3) = slp*tlp*(one + s*slm + t*tlm)
89 hh(4) = slm*tlp*(one - s*slp + t*tlm)
90
91 hrs(1) = slm*tlp*tm2*lt
92 hrs(2) = slp*tlp*tm2*lt
93 hrs(3) =-slp*tlm*tp2*lt
94 hrs(4) =-slm*tlm*tp2*lt
95
96 hrt(1) =-tlm*slp*sm2*ls
97 hrt(2) = tlm*slm*sp2*ls
98 hrt(3) = tlp*slm*sp2*ls
99 hrt(4) =-tlp*slp*sm2*ls
100
101 hps(1) = (-three + four*s + six*t2*slm - s3) * fourth / lt
102 hps(2) = (-three - four*s + six*t2*slp + s3) * fourth / lt
103 hps(3) = ( three + four*s - six*t2*slp - s3) * fourth / lt
104 hps(4) = ( three - four*s - six*t2*slm + s3) * fourth / lt
105
106 hpt(1) =-(-three + four*t + six*s2*tlm - t3) * fourth / ls
107 hpt(2) =-( three - four*t - six*s2*tlm + t3) * fourth / ls
108 hpt(3) =-( three + four*t - six*s2*tlp - t3) * fourth / ls
109 hpt(4) =-(-three - four*t + six*s2*tlp + t3) * fourth / ls
110
111 srpm = three_half*s2 - s - half
112 srpp = three_half*s2 + s - half
113 trpm = three_half*t2 - t - half
114 trpp = three_half*t2 + t - half
115
116 hprs(1) = slm * trpm
117 hprs(2) = slp * trpm
118 hprs(3) = slp * trpp
119 hprs(4) = slm * trpp
120
121 hprt(1) = tlm * srpm
122 hprt(2) = tlm * srpp
123 hprt(3) = tlp * srpp
124 hprt(4) = tlp * srpm
125
126 hxs(1) =-slp*sm2 * ls/lt
127 hxs(2) = slm*sp2 * ls/lt
128 hxs(3) =-hxs(2)
129 hxs(4) =-hxs(1)
130
131 hxt(1) =-tlp*tm2 * lt/ls
132 hxt(2) =-hxt(1)
133 hxt(3) =-tlm*tp2 * lt/ls
134 hxt(4) =-hxt(3)
135
136 RETURN