# | Line 92 | Line 92 | namespace oopse { | |
---|---|---|
92 | } | |
93 | ||
94 | strcpy(checkPointMsg, "Dump file opened for reading successfully."); | |
95 | < | MPIcheckPoint(); |
95 | > | errorCheckPoint(); |
96 | ||
97 | #endif | |
98 | ||
# | Line 113 | Line 113 | namespace oopse { | |
113 | } | |
114 | ||
115 | strcpy(checkPointMsg, "Dump file closed successfully."); | |
116 | < | MPIcheckPoint(); |
116 | > | errorCheckPoint(); |
117 | ||
118 | #endif | |
119 | ||
# | Line 246 | Line 246 | namespace oopse { | |
246 | Vector3d com; | |
247 | Vector3d comvel; | |
248 | Vector3d comw; | |
249 | < | info_->getComAll(com, comvel); |
250 | < | comw = info_->getAngularMomentum(); |
249 | > | if (needPos_ && needVel_){ |
250 | > | info_->getComAll(com, comvel); |
251 | > | comw = info_->getAngularMomentum(); |
252 | > | }else{ |
253 | > | com = info_->getCom(); |
254 | > | comvel = 0.0; |
255 | > | comw = 0.0; |
256 | > | } |
257 | s->setCOMprops(com, comvel, comw); | |
258 | } | |
259 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |