--- trunk/src/io/DumpReader.cpp 2006/12/29 21:43:18 1104 +++ trunk/src/io/DumpReader.cpp 2008/04/25 15:14:47 1241 @@ -92,7 +92,7 @@ namespace oopse { } strcpy(checkPointMsg, "Dump file opened for reading successfully."); - MPIcheckPoint(); + errorCheckPoint(); #endif @@ -113,7 +113,7 @@ namespace oopse { } strcpy(checkPointMsg, "Dump file closed successfully."); - MPIcheckPoint(); + errorCheckPoint(); #endif @@ -246,8 +246,14 @@ namespace oopse { Vector3d com; Vector3d comvel; Vector3d comw; - info_->getComAll(com, comvel); - comw = info_->getAngularMomentum(); + if (needPos_ && needVel_){ + info_->getComAll(com, comvel); + comw = info_->getAngularMomentum(); + }else{ + com = info_->getCom(); + comvel = 0.0; + comw = 0.0; + } s->setCOMprops(com, comvel, comw); }