ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/io/DumpReader.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/io/DumpReader.cpp (file contents):
Revision 3003 by gezelter, Fri Sep 8 16:13:21 2006 UTC vs.
Revision 3102 by gezelter, Fri Dec 29 21:43:18 2006 UTC

# Line 70 | Line 70 | namespace oopse {
70   namespace oopse {
71    
72    DumpReader::DumpReader(SimInfo* info, const std::string& filename)
73 <    : info_(info), filename_(filename), isScanned_(false), nframes_(0) {
73 >    : info_(info), filename_(filename), isScanned_(false), nframes_(0), needCOMprops_(false) {
74      
75   #ifdef IS_MPI
76      
# Line 240 | Line 240 | namespace oopse {
240      }
241      
242      readSet(whichFrame);
243 +
244 +    if (needCOMprops_) {
245 +      Snapshot* s = info_->getSnapshotManager()->getCurrentSnapshot();
246 +      Vector3d com;
247 +      Vector3d comvel;
248 +      Vector3d comw;
249 +      info_->getComAll(com, comvel);
250 +      comw = info_->getAngularMomentum();
251 +      s->setCOMprops(com, comvel, comw);      
252 +    }
253 +
254    }
255    
256    void DumpReader::readSet(int whichFrame) {    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines