ESyS-Particle  4.0.1
TriggeredVectorParticleFieldMaster.h
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __TRIGGERED_VECTOR_PARTICLE_FIELD_MASTER_H
14 #define __TRIGGERED_VECTOR_PARTICLE_FIELD_MASTER_H
15 
16 //--- project includes ---
17 #include "Fields/ParticleFieldMaster.h"
18 #include "Foundation/RingBuffer.h"
19  #include "Fields/MaxTrigger.h"
20 
21 // --- STL includes ---
22 #include <map>
23 
24 using std::map;
25 
27 {
28  private:
29  RingBuffer<map<int,Vec3> > *m_save_map_buffer;
30  RingBuffer<map<int,Vec3> > *m_pos_map_buffer;
31  string m_base_file_name;
32  int m_file_count;
33  int m_tail_size;
34  int m_tail_counter;
35  int m_ts;
36  bool m_is_triggered;
37  bool m_is_writing_tail;
38 
39  MaxTrigger* m_Trigger;
40 
41  void IncrementFilename();
42 
43  public:
44  TriggeredVectorParticleFieldMaster(TML_Comm*,const string&,const string&,const string&,int,int,int,const MaxTrigParams&);
45  TriggeredVectorParticleFieldMaster(TML_Comm*,const string&,const string&,const string&,int,int,int,int,int,const MaxTrigParams&);
47 
48  virtual void write();
49 };
50 #endif // __TRIGGERED_VECTOR_PARTICLE_FIELD_MASTER_H