54
55
56
57#include "implicit_f.inc"
58
59
60
61#include "param_c.inc"
62
63
64
65 INTEGER JFT,JLT,FLAG
66 INTEGER IGRTH(*),GRTH(*)
68 . gresav(npsav,*),off(*),
69 . xmas(*), ei(*),rei(*),rek(*),
70 . ek(*), xm(*), ym(*), zm(*),
71 . xxm(*), yym(*), zzm(*),
72 . xcg(*), ycg(*), zcg(*),
73 . ixx(*), iyy(*), izz(*),
74 . ixy(*), iyz(*), izx(*)
75
76
77
78 INTEGER I,J
79
80 DO i=jft,jlt
81 IF (igrth(i) /= igrth(i+1)) THEN
82 IF(off(i) /= zero)THEN
83 DO j = igrth(i),igrth(i+1)-1
84 gresav(1,grth(j)) = gresav(1,grth(j)) + ei(i)
85 gresav(2,grth(j)) = gresav(2,grth(j)) + ek(i)
86 gresav(3,grth(j)) = gresav(3,grth(j)) + xm(i)
87 gresav(4,grth(j)) = gresav(4,grth(j)) + ym
88 gresav(5,grth(j)) = gresav(5,grth(j)) + zm(i)
89 gresav(6,grth(j)) = gresav(6,grth(j)) + xmas(i)
90 ENDDO
91 ENDIF
92 ENDIF
93 ENDDO
94 IF (flag /= 0)THEN
95 DO i=jft,jlt
96 IF (igrth(i) /= igrth(i+1)) THEN
97 DO j = igrth(i),igrth(i+1)-1
98 gresav(9,grth(j)) = gresav(9,grth(j)) + xcg(i)
99 gresav(10,grth(j)) = gresav(10,grth(j)) + ycg(i)
100 gresav(11,grth(j)) = gresav(11,grth(j)) + zcg(i)
101 gresav(12,grth(j)) = gresav(12,grth(j)) + xxm(i)
102 gresav(13,grth(j)) = gresav(13,grth(j)) + yym(i)
103 gresav(14,grth(j)) = gresav(14,grth(j)) + zzm(i)
104 gresav(15,grth(j)) = gresav(15,grth(j)) + ixx(i)
105 gresav(16,grth(j)) = gresav(16,grth(j)) + iyy(i)
106 gresav
107 gresav(18,grth(j)) = gresav(18,grth(j)) + ixy(i)
108 gresav(19,grth(j)) = gresav(19,grth(j)) + iyz(i)
109 gresav(20,grth(j)) = gresav(20,grth(j)) + izx(i)
110 gresav(21,grth(j)) = gresav(21,grth(j)) + rei(i)
111 gresav(22,grth(j)) = gresav(22,grth(j)) + rek(i)
112 ENDDO
113 ENDIF
114 ENDDO
115 ENDIF
116 RETURN