ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/ReadWrite.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/ReadWrite.hpp (file contents):
Revision 837 by tim, Wed Oct 29 00:19:10 2003 UTC vs.
Revision 1078 by tim, Tue Mar 2 20:32:40 2004 UTC

# Line 1 | Line 1
1   #ifndef __READWRITE_H__
2   #define __READWRITE_H__
3 <
3 > #define _LARGEFILE_SOURCE64
4 > #define _FILE_OFFSET_BITS 64
5   #include <iostream>
6   #include <fstream>
7  
# Line 61 | Line 62 | class DumpWriter{ (public)
62    ~DumpWriter();
63  
64    void writeDump( double currentTime );
65 <  void writeFinal( double finalTime );
65 >  void writeFinal( double currentTime);
66 >  void writeFrame( vector<ofstream*>& outFile, double finalTime );
67  
68 + #ifdef IS_MPI
69 +  void update();
70 + #endif
71 +
72   private:
73 +
74 + #ifdef IS_MPI
75 +  void sortByGlobalIndex();
76 + #endif
77 +
78    SimInfo* entry_plug;
79 <  ofstream outFile;
80 <  char outName[500];
79 >  ofstream dumpFile;
80 >
81 > #ifdef IS_MPI
82 >  vector<pair<int, int> > indexArray;
83 > #endif
84   };
85  
86   class StatWriter{
# Line 105 | Line 119 | class DumpReader{ (public)
119   class DumpReader{
120  
121   public:
122 <  DumpReader( char *in_name );
122 >  DumpReader(const char *in_name );
123    ~DumpReader();
124  
125    int getNframes();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines