ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/ZConsWriter.hpp
Revision: 1091
Committed: Tue Mar 16 19:22:56 2004 UTC (20 years, 3 months ago) by tim
File size: 582 byte(s)
Log Message:
ZConstraint now can support sequential moving. Refactorying is needed to support SMD in ZConstraint

File Contents

# Content
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"
15 #endif
16
17 using namespace std;
18
19 class ZConsWriter {
20
21 public:
22 ZConsWriter(const char* filename, vector<ZConsParaItem>* thePara);
23 ~ZConsWriter();
24
25 void writeFZ(double time, int num, int* index, double* fz, double* curZPos, double* zpos);
26
27 private:
28 void writeZPos();
29 ofstream output;
30 vector<ZConsParaItem>* parameters;
31 };
32
33 #endif