| 1 | gezelter | 1490 | #ifndef __ZCONSWRITER_H__ | 
| 2 |  |  | #define __ZCONSWRITER_H__ | 
| 3 |  |  |  | 
| 4 |  |  | #define _LARGEFILE_SOURCE64 | 
| 5 |  |  | # ifndef _FILE_OFFSET_BITS | 
| 6 |  |  | #   define _FILE_OFFSET_BITS 64 | 
| 7 |  |  | # endif | 
| 8 |  |  |  | 
| 9 |  |  | #include <iostream> | 
| 10 |  |  | #include <fstream> | 
| 11 |  |  |  | 
| 12 | tim | 1625 | #include "constraints/ZconsData.hpp" | 
| 13 | gezelter | 1490 |  | 
| 14 |  |  | #ifdef IS_MPI | 
| 15 |  |  | #include <mpi.h> | 
| 16 |  |  | #endif | 
| 17 |  |  |  | 
| 18 | tim | 1824 |  | 
| 19 | tim | 1625 | using namespace oopse; | 
| 20 | gezelter | 1490 |  | 
| 21 |  |  | class ZConsWriter { | 
| 22 |  |  |  | 
| 23 | tim | 1832 | public: | 
| 24 |  |  | ZConsWriter(const char* filename,  std::vector<ZConsParaItem>* thePara); | 
| 25 |  |  | ~ZConsWriter(); | 
| 26 |  |  |  | 
| 27 |  |  | void writeFZ(double time, int num, int* index, double* fz, double* curZPos, double* zpos); | 
| 28 |  |  |  | 
| 29 |  |  | private: | 
| 30 |  |  | void writeZPos(); | 
| 31 |  |  | std::ofstream output; | 
| 32 |  |  | std::vector<ZConsParaItem>* parameters; | 
| 33 | gezelter | 1490 | }; | 
| 34 |  |  |  | 
| 35 |  |  | #endif |