| 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 |
|
|
| 63 |
|
|
| 64 |
|
void writeDump( double currentTime ); |
| 65 |
|
void writeFinal( double currentTime); |
| 66 |
< |
void writeFrame( ofstream& outFile, double finalTime ); |
| 66 |
> |
void writeFrame( vector<ofstream*>& outFile, double finalTime ); |
| 67 |
|
|
| 68 |
|
#ifdef IS_MPI |
| 69 |
|
void update(); |
| 77 |
|
|
| 78 |
|
SimInfo* entry_plug; |
| 79 |
|
ofstream dumpFile; |
| 80 |
+ |
|
| 81 |
+ |
#ifdef IS_MPI |
| 82 |
|
vector<pair<int, int> > indexArray; |
| 83 |
+ |
#endif |
| 84 |
|
}; |
| 85 |
|
|
| 86 |
|
class StatWriter{ |
| 119 |
|
class DumpReader{ |
| 120 |
|
|
| 121 |
|
public: |
| 122 |
< |
DumpReader( char *in_name ); |
| 122 |
> |
DumpReader(const char *in_name ); |
| 123 |
|
~DumpReader(); |
| 124 |
|
|
| 125 |
|
int getNframes(); |