ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/io/DumpWriter.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/io/DumpWriter.cpp (file contents):
Revision 1882 by tim, Tue Dec 7 23:08:14 2004 UTC vs.
Revision 1883 by tim, Mon Dec 13 22:30:27 2004 UTC

# Line 214 | Line 214 | void DumpWriter::writeFrame(std::ostream& os) {
214          potatoes = new int[nProc];
215  
216          //write out the comment lines
217 <        for(i = 0; i < nProc; i++) {
217 >        for(int i = 0; i < nProc; i++) {
218              potatoes[i] = 0;
219          }
220  
221  
222          os << nTotObjects << "\n";
223 <        writeCommentLine(info_->getSnapshotManager()->getCurrentSnapshot());
223 >        writeCommentLine(os, info_->getSnapshotManager()->getCurrentSnapshot());
224  
225 <        for(i = 0; i < info_->getNGlobalMolecules(); i++) {
225 >        for(int i = 0; i < info_->getNGlobalMolecules(); i++) {
226  
227              // Get the Node number which has this atom;
228  
# Line 409 | Line 409 | void DumpWriter::writeFrame(std::ostream& os) {
409  
410          myPotato = 0;
411  
412 <        for(i = 0; i < info_->getNGlobalMolecules(); i++) {
412 >        for(int i = 0; i < info_->getNGlobalMolecules(); i++) {
413  
414              // Am I the node which has this integrableObject?
415 <            whichNode = info_->getMolToProc(i);
415 >            int whichNode = info_->getMolToProc(i);
416              if (whichNode == worldRank) {
417                  if (myPotato + 1 >= MAXTAG) {
418  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines