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 |
|
|
16 |
|
#include "Atom.hpp" |
17 |
|
#include "SimInfo.hpp" |
18 |
|
#include "Thermo.hpp" |
19 |
+ |
#include "StuntDouble.hpp" |
20 |
|
|
21 |
|
using namespace std; |
22 |
|
|
64 |
|
|
65 |
|
void writeDump( double currentTime ); |
66 |
|
void writeFinal( double currentTime); |
67 |
< |
void writeFrame( ofstream& outFile, double finalTime ); |
67 |
> |
void writeFrame( vector<ofstream*>& outFile, double finalTime ); |
68 |
|
|
69 |
|
#ifdef IS_MPI |
70 |
|
void update(); |
78 |
|
|
79 |
|
SimInfo* entry_plug; |
80 |
|
ofstream dumpFile; |
81 |
+ |
|
82 |
+ |
#ifdef IS_MPI |
83 |
|
vector<pair<int, int> > indexArray; |
84 |
+ |
#endif |
85 |
|
}; |
86 |
|
|
87 |
|
class StatWriter{ |
110 |
|
void readInit( SimInfo* the_entry_plug ); |
111 |
|
|
112 |
|
private: |
113 |
< |
char* parseDumpLine(char* line, int atomIndex); |
113 |
> |
char* parseDumpLine(char* line, StuntDouble* sd); |
114 |
|
char* parseCommentLine(char* line, SimInfo* entry_plug); |
115 |
|
FILE *c_in_file; |
116 |
|
char c_in_name[500]; |
120 |
|
class DumpReader{ |
121 |
|
|
122 |
|
public: |
123 |
< |
DumpReader( char *in_name ); |
123 |
> |
DumpReader(const char *in_name ); |
124 |
|
~DumpReader(); |
125 |
|
|
126 |
|
int getNframes(); |