OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
grelem_sav.F File Reference
#include "implicit_f.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine grelem_sav (jft, jlt, gresav, igrth, grth, off, ei, ek, xm, ym, zm, xmas, xcg, ycg, zcg, xxm, yym, zzm, ixx, iyy, izz, ixy, iyz, izx, rei, rek, flag)

Function/Subroutine Documentation

◆ grelem_sav()

subroutine grelem_sav ( integer jft,
integer jlt,
gresav,
integer, dimension(*) igrth,
integer, dimension(*) grth,
off,
ei,
ek,
xm,
ym,
zm,
xmas,
xcg,
ycg,
zcg,
xxm,
yym,
zzm,
ixx,
iyy,
izz,
ixy,
iyz,
izx,
rei,
rek,
integer flag )

Definition at line 48 of file grelem_sav.F.

54C-----------------------------------------------
55C I m p l i c i t T y p e s
56C-----------------------------------------------
57#include "implicit_f.inc"
58C-----------------------------------------------
59C C o m m o n B l o c k s
60C-----------------------------------------------
61#include "param_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
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(*)
75C-----------------------------------------------
76C L o c a l V a r i a b l e s
77C-----------------------------------------------
78 INTEGER I,J
79C-----------------------------------------------
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(i)
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(17,grth(j)) = gresav(17,grth(j)) + izz(i)
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
#define my_real
Definition cppsort.cpp:32