1 |
|
#ifndef __ZCONSWRITER_H__ |
2 |
|
#define __ZCONSWRITER_H__ |
3 |
|
|
4 |
+ |
#define _LARGEFILE_SOURCE64 |
5 |
+ |
#define _FILE_OFFSET_BITS 64 |
6 |
+ |
|
7 |
|
#include <iostream> |
8 |
|
#include <fstream> |
9 |
|
|
10 |
+ |
#include "GenericData.hpp" |
11 |
+ |
|
12 |
|
#ifdef IS_MPI |
13 |
|
#include <mpi.h> |
14 |
|
#include "mpiSimulation.hpp" |
19 |
|
class ZConsWriter { |
20 |
|
|
21 |
|
public: |
22 |
< |
ZConsWriter(const char* filename); |
22 |
> |
ZConsWriter(const char* filename, vector<ZConsParaItem>* thePara); |
23 |
|
~ZConsWriter(); |
24 |
|
|
25 |
< |
void writeFZ(double time, int num, int* index, double* fz); |
21 |
< |
void writeRefZ( const vector<int>& index, const vector<double>& refZ); |
25 |
> |
void writeFZ(double time, int num, int* index, double* fz, double* curZPos); |
26 |
|
|
27 |
|
private: |
28 |
+ |
void writeZPos(); |
29 |
|
ofstream output; |
30 |
+ |
vector<ZConsParaItem>* parameters; |
31 |
|
}; |
32 |
|
|
33 |
|
#endif |