| 310 | 
  | 
    SimInfo::MoleculeIterator mi; | 
| 311 | 
  | 
    Molecule::IntegrableObjectIterator ii; | 
| 312 | 
  | 
    RigidBody::AtomIterator ai; | 
| 313 | 
– | 
    Atom* atom; | 
| 313 | 
  | 
 | 
| 314 | 
  | 
#ifndef IS_MPI | 
| 315 | 
  | 
    os << "  <Snapshot>\n"; | 
| 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)) {         | 
| 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++; | 
| 419 | 
  | 
          // send our buffer: | 
| 420 | 
  | 
          MPI::COMM_WORLD.Send((void *)buffer.c_str(), sendBufferLength,  | 
| 421 | 
  | 
                               MPI::CHAR, masterNode, 0); | 
| 422 | 
+ | 
 | 
| 423 | 
  | 
        } | 
| 424 | 
  | 
      } | 
| 425 | 
  | 
    } | 
| 447 | 
  | 
             | 
| 448 | 
  | 
            RigidBody* rb = static_cast<RigidBody*>(sd); | 
| 449 | 
  | 
            int siteIndex = 0; | 
| 450 | 
< | 
            for (atom = rb->beginAtom(ai); atom != NULL;   | 
| 450 | 
> | 
            for (Atom* atom = rb->beginAtom(ai); atom != NULL;   | 
| 451 | 
  | 
                 atom = rb->nextAtom(ai)) {                                              | 
| 452 | 
  | 
              buffer += prepareSiteLine(atom, ioIndex, siteIndex); | 
| 453 | 
  | 
              siteIndex++; | 
| 728 | 
  | 
#endif // is_mpi | 
| 729 | 
  | 
       | 
| 730 | 
  | 
      eorStream = createOStream(eorFilename_); | 
| 731 | 
< | 
      writeFrame(*eorStream); | 
| 732 | 
< | 
       | 
| 731 | 
> | 
 | 
| 732 | 
  | 
#ifdef IS_MPI | 
| 733 | 
  | 
    } | 
| 734 | 
+ | 
#endif | 
| 735 | 
+ | 
     | 
| 736 | 
+ | 
    writeFrame(*eorStream); | 
| 737 | 
+ | 
       | 
| 738 | 
+ | 
#ifdef IS_MPI | 
| 739 | 
  | 
    if (worldRank == 0) { | 
| 740 | 
< | 
#endif // is_mpi | 
| 741 | 
< | 
 | 
| 740 | 
> | 
#endif | 
| 741 | 
> | 
       | 
| 742 | 
  | 
      writeClosing(*eorStream); | 
| 743 | 
  | 
      delete eorStream; | 
| 744 | 
< | 
 | 
| 744 | 
> | 
       | 
| 745 | 
  | 
#ifdef IS_MPI | 
| 746 | 
  | 
    } | 
| 747 | 
  | 
#endif // is_mpi   |