236 |
|
p[ver][0] = vertex->point[0]; |
237 |
|
p[ver][1] = vertex->point[1]; |
238 |
|
p[ver][2] = vertex->point[2]; |
239 |
– |
|
239 |
|
Vector3d vel; |
240 |
|
RealType mass; |
241 |
|
|
250 |
|
|
251 |
|
int localID = id - displacements[myrank]; |
252 |
|
|
253 |
< |
if (localID >= 0 && localID < hullSitesOnProc[myrank]) |
253 |
> |
|
254 |
> |
if (localID >= 0 && localID < hullSitesOnProc[myrank]){ |
255 |
|
face.addVertexSD(bodydoubles[indexMap[localID]]); |
256 |
< |
|
256 |
> |
}else{ |
257 |
> |
face.addVertexSD(NULL); |
258 |
> |
} |
259 |
|
#else |
260 |
|
vel = bodydoubles[id]->getVel(); |
261 |
|
mass = bodydoubles[id]->getMass(); |
262 |
|
face.addVertexSD(bodydoubles[id]); |
263 |
+ |
|
264 |
+ |
|
265 |
|
#endif |
266 |
|
|
267 |
|
faceVel = faceVel + vel; |