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

Comparing trunk/src/applications/staticProps/SpatialStatistics.cpp (file contents):
Revision 1979 by gezelter, Sat Apr 5 20:56:01 2014 UTC vs.
Revision 2026 by gezelter, Wed Oct 22 12:23:59 2014 UTC

# Line 360 | Line 360 | namespace OpenMD {
360      bool hasCoordinateOrigin = rnemdParams->haveCoordinateOrigin();
361      
362      if (hasCoordinateOrigin) {
363 <      coordinateOrigin_ = rnemdParams->getCoordinateOrigin();
363 >        std::vector<RealType> co = rnemdParams->getCoordinateOrigin();
364 >        if (co.size() != 3) {
365 >          sprintf(painCave.errMsg,
366 >                  "RNEMD: Incorrect number of parameters specified for coordinateOrigin.\n"
367 >                  "\tthere should be 3 parameters, but %lu were specified.\n",
368 >                  co.size());
369 >          painCave.isFatal = 1;
370 >          simError();      
371 >        }
372 >        coordinateOrigin_.x() = co[0];
373 >        coordinateOrigin_.y() = co[1];
374 >        coordinateOrigin_.z() = co[2];
375      } else {
376        coordinateOrigin_ = V3Zero;
377      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines