34
35
36
37#include "implicit_f.inc"
38
39
40
41#include "mvsiz_p.inc"
42
43
44
45#include "scr18_c.inc"
46#include "scr05_c.inc"
47
48
49
50 INTEGER, INTENT(IN) :: MTN
51 INTEGER, INTENT(IN) :: ISMSTR
52 INTEGER NC(MVSIZ,10),NEL
53
55 . vx0(mvsiz,10),vy0(mvsiz,10),vz0(mvsiz,10),
56 . d(3,*) ,off(*),off0(*),x(3,*)
57 DOUBLE PRECISION
58 . XX(MVSIZ,10), YY(MVSIZ,10), ZZ(MVSIZ,10),XDP(3,*),
59 . X0(MVSIZ,10), Y0(MVSIZ,10), Z0(MVSIZ,10),SAV(NEL,30)
60
61
62
63 INTEGER I,NPE,N,N2,N3
64
65
66
67
68
69 npe = 10
70 DO n=1,npe
71 DO i=1,nel
72 x0(i,n)=sav(i,n)
73 y0(i,n)=sav(i,n+npe)
74 z0(i,n)=sav(i,n+2*npe)
75 ENDDO
76 ENDDO
77
78
79
80 n = npe
81 DO i=1,nel
82 vx0(i,n)=xx(i,n)-x0(i,n)
83 vy0(i,n)=yy(i,n)-y0(i,n)
84 vz0(i,n)=zz(i,n)-z0(i,n)
85 ENDDO
86 DO n=1,npe
87 DO i=1,nel
88 vx0(i,n)=xx(i,n)-x0(i,n)-vx0(i,npe)
89 vy0(i,n)=yy(i,n)-y0(i,n)-vy0(i,npe)
90 vz0(i,n)=zz(i,n)-z0(i,n)-vz0(i,npe)
91 ENDDO
92 ENDDO
93
94 IF (ismstr == 12.AND.idtmin(1)==3) THEN
95 DO i=1,nel
96 off0(i)=off(i)
97 ENDDO
98 IF (mtn==1) THEN
99 IF(iresp==1)THEN
100 DO i=1,nel
101 IF (off(i) <= one ) cycle
102 n3 = nc(i,npe)
103 vx0(i,npe)=xdp(1,n3)-x0(i,npe)
104 vy0(i,npe)=xdp(2,n3)-y0(i,npe)
105 vz0(i,npe)=xdp(3,n3)-z0(i,npe)
106 ENDDO
107 DO n=1,npe
108 DO i=1,nel
109 IF (off(i) <= one ) cycle
110 n2 = nc(i,n)
111 vx0(i,n) =xdp(1,n2)-x0(i,n)-vx0(i,npe)
112 vy0(i,n) =xdp(2,n2)-y0(i,n)-vy0(i,npe)
113 vz0(i,n) =xdp(3,n2)-z0(i,n)-vz0(i,npe)
114 ENDDO
115 ENDDO
116 ELSE
117 DO i=1,nel
118 IF (off(i) <= one ) cycle
119 n3 = nc(i,npe)
120 vx0(i,npe)=x(1,n3)-x0(i,npe)
121 vy0(i,npe)=x(2,n3)-y0(i,npe)
122 vz0(i,npe)=x(3,n3)-z0(i,npe)
123 ENDDO
124 DO n=1,npe
125 DO i=1,nel
126 IF (off(i) <= one ) cycle
127 n2 = nc(i,n)
128 vx0(i,n) =x(1,n2)-x0(i,n)-vx0(i,npe)
129 vy0(i,n) =x(2,n2)-y0(i,n)-vy0(i,npe)
130 vz0(i,n) =x(3,n2)-z0(i,n)-vz0(i,npe)
131 ENDDO
132 ENDDO
133 END IF
134 ELSE
135 DO n=1,npe
136 DO i=1,nel
137 IF (off(i) <= one ) cycle
138 vx0(i,n)=d(1,nc(i,n))-d(1,nc(i,npe))
139 vy0(i,n)=d(2,nc(i,n))-d(2,nc(i,npe))
140 vz0(i,n)=d(3,nc(i,n))-d(3,nc(i,npe))
141 ENDDO
142 ENDDO
143 END IF
144 END IF
145
146 RETURN