ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/ConvexHull.cpp
(Generate patch)

Comparing trunk/src/math/ConvexHull.cpp (file contents):
Revision 1404 by chuckv, Fri Jan 15 20:46:49 2010 UTC vs.
Revision 1410 by chuckv, Wed Feb 24 15:22:03 2010 UTC

# Line 236 | Line 236 | void ConvexHull::computeHull(std::vector<StuntDouble*>
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  
# Line 251 | Line 250 | void ConvexHull::computeHull(std::vector<StuntDouble*>
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines