ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/md_code/DumpWriter.cpp
(Generate patch)

Comparing trunk/mdtools/md_code/DumpWriter.cpp (file contents):
Revision 214 by mmeineke, Mon Dec 16 21:42:14 2002 UTC vs.
Revision 249 by chuckv, Mon Jan 27 21:28:19 2003 UTC

# Line 1 | Line 1
1   #include <cstring>
2   #include <iostream>
3   #include <fstream>
4 +
5 + #ifdef IS_MPI
6   #include <mpi.h>
7 + #include "mpiSimulation.hpp"
8 + #endif //is_mpi
9  
10   #include "ReadWrite.hpp"
11   #include "simError.h"
12  
13  
14 +
15 +
16 +
17   DumpWriter::DumpWriter( SimInfo* the_entry_plug ){
18  
19   #ifdef IS_MPI
# Line 322 | Line 329 | void DumpWriter::writeFinal(){
329      
330    finalOut << nAtoms << "\n";
331      
332 <  finalOut << currentTime << "\t"
333 <          << entry_plug->box_x << "\t"
334 <          << entry_plug->box_y << "\t"
328 <          << entry_plug->box_z << "\n";
332 >  finalOut << entry_plug->box_x << "\t"
333 >           << entry_plug->box_y << "\t"
334 >           << entry_plug->box_z << "\n";
335      
336    for( i=0; i<nAtoms; i++ ){
337        
# Line 380 | Line 386 | void DumpWriter::writeFinal(){
386    if( worldRank == 0 ){
387      finalOut << entry_plug->mpiSim->getTotAtoms() << "\n";
388        
389 <    finalOut << currentTime << "\t"
390 <            << entry_plug->box_x << "\t"
391 <            << entry_plug->box_y << "\t"
392 <            << entry_plug->box_z << "\n";
387 <
389 >    finalOut << entry_plug->box_x << "\t"
390 >             << entry_plug->box_y << "\t"
391 >             << entry_plug->box_z << "\n";
392 >    
393      masterIndex = 0;
394      for( i=0; i<nAtoms; i++ ){
395        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines