8 |
|
|
9 |
|
#include <iostream> |
10 |
|
#include <fstream> |
11 |
+ |
#include <string> |
12 |
|
|
13 |
|
#include "brains/SimInfo.hpp" |
14 |
< |
#include "constraints/ZconsData.hpp" |
14 |
> |
#include "constraints/ZconsStruct.hpp" |
15 |
|
|
16 |
|
#ifdef IS_MPI |
17 |
|
#include <mpi.h> |
18 |
|
#endif |
19 |
|
|
20 |
+ |
namespace oopse { |
21 |
|
|
20 |
– |
using namespace oopse; |
21 |
– |
|
22 |
|
class ZConsWriter { |
23 |
|
|
24 |
|
public: |
25 |
< |
ZConsWriter(const char* filename, std::vector<ZConsParaItem>* thePara); |
25 |
> |
ZConsWriter(SimInfo* info, const std::string& filename); |
26 |
|
~ZConsWriter(); |
27 |
|
|
28 |
< |
void writeFZ(SimInfo* info, double time, int num, int* index, double* fz, double* curZPos, double* zpos); |
28 |
> |
void writeFZ(const std::list<ZconstraintMol>& fixedZmols); |
29 |
|
|
30 |
|
private: |
31 |
|
void writeZPos(); |
32 |
< |
std::ofstream output; |
33 |
< |
std::vector<ZConsParaItem>* parameters; |
32 |
> |
|
33 |
> |
SimInfo* info_; |
34 |
> |
std::ofstream output_; |
35 |
> |
|
36 |
|
}; |
37 |
|
|
38 |
+ |
} |
39 |
|
#endif |