ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/io/ZConsWriter.hpp
Revision: 1883
Committed: Mon Dec 13 22:30:27 2004 UTC (19 years, 9 months ago) by tim
File size: 715 byte(s)
Log Message:
MPI version is built

File Contents

# User Rev Content
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 1883 #include "brains/SimInfo.hpp"
13 tim 1625 #include "constraints/ZconsData.hpp"
14 gezelter 1490
15     #ifdef IS_MPI
16     #include <mpi.h>
17     #endif
18    
19 tim 1824
20 tim 1625 using namespace oopse;
21 gezelter 1490
22     class ZConsWriter {
23    
24 tim 1832 public:
25     ZConsWriter(const char* filename, std::vector<ZConsParaItem>* thePara);
26     ~ZConsWriter();
27    
28 tim 1883 void writeFZ(SimInfo* info, double time, int num, int* index, double* fz, double* curZPos, double* zpos);
29 tim 1832
30     private:
31     void writeZPos();
32     std::ofstream output;
33     std::vector<ZConsParaItem>* parameters;
34 gezelter 1490 };
35    
36     #endif