ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/hydrodynamics/CompositeShape.cpp
(Generate patch)

Comparing trunk/src/applications/hydrodynamics/CompositeShape.cpp (file contents):
Revision 920 by tim, Fri Mar 17 23:20:35 2006 UTC vs.
Revision 921 by tim, Wed Mar 29 18:09:26 2006 UTC

# Line 76 | Line 76 | std::pair<Vector3d, Vector3d> CompositeShape::getBox()
76      std::pair<Vector3d, Vector3d>  boundary = (*iter)->getBox();
77      for (++iter; iter != shapes_.end(); ++iter) {
78          std::pair<Vector3d, Vector3d> currBoundary = (*iter)->getBox();
79 <            swap_if(boundary.first, currBoundary.first, std::less<double>());
80 <            swap_if(boundary.second, currBoundary.second, std::greater<double>());        
79 >            swap_if(boundary.first, currBoundary.first, std::greater<double>());
80 >            swap_if(boundary.second, currBoundary.second, std::less<double>());        
81      }
82  
83      return boundary;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines