--- trunk/src/io/DumpWriter.cpp 2013/06/16 15:15:42 1879 +++ trunk/src/io/DumpWriter.cpp 2013/06/17 18:28:30 1880 @@ -334,8 +334,8 @@ namespace OpenMD { mol = info_->nextMolecule(mi)) { for (sd = mol->beginIntegrableObject(ii); sd != NULL; - sd = mol->nextIntegrableObject(ii)) { - + sd = mol->nextIntegrableObject(ii)) { + int ioIndex = sd->getGlobalIntegrableObjectIndex(); // do one for the IO itself os << prepareSiteLine(sd, ioIndex, 0);