# | Line 310 | Line 310 | namespace OpenMD { | |
---|---|---|
310 | SimInfo::MoleculeIterator mi; | |
311 | Molecule::IntegrableObjectIterator ii; | |
312 | RigidBody::AtomIterator ai; | |
313 | – | Atom* atom; |
313 | ||
314 | #ifndef IS_MPI | |
315 | os << " <Snapshot>\n"; | |
# | Line 318 | Line 317 | namespace OpenMD { | |
317 | writeFrameProperties(os, info_->getSnapshotManager()->getCurrentSnapshot()); | |
318 | ||
319 | os << " <StuntDoubles>\n"; | |
320 | < | for (mol = info_->beginMolecule(mi); mol != NULL; mol = info_->nextMolecule(mi)) { |
321 | < | |
320 | > | for (mol = info_->beginMolecule(mi); mol != NULL; |
321 | > | mol = info_->nextMolecule(mi)) { |
322 | ||
323 | for (sd = mol->beginIntegrableObject(ii); sd != NULL; | |
324 | sd = mol->nextIntegrableObject(ii)) { | |
# | Line 345 | Line 344 | namespace OpenMD { | |
344 | ||
345 | RigidBody* rb = static_cast<RigidBody*>(sd); | |
346 | int siteIndex = 0; | |
347 | < | for (atom = rb->beginAtom(ai); atom != NULL; |
347 | > | for (Atom* atom = rb->beginAtom(ai); atom != NULL; |
348 | atom = rb->nextAtom(ai)) { | |
349 | os << prepareSiteLine(atom, ioIndex, siteIndex); | |
350 | siteIndex++; | |
# | Line 447 | Line 446 | namespace OpenMD { | |
446 | ||
447 | RigidBody* rb = static_cast<RigidBody*>(sd); | |
448 | int siteIndex = 0; | |
449 | < | for (atom = rb->beginAtom(ai); atom != NULL; |
449 | > | for (Atom* atom = rb->beginAtom(ai); atom != NULL; |
450 | atom = rb->nextAtom(ai)) { | |
451 | buffer += prepareSiteLine(atom, ioIndex, siteIndex); | |
452 | siteIndex++; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |