ESyS-Particle  4.0.1
ScalarParticleDistributionMaster.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 __SCALARPARTICLEDISTRIBUTIONMASTER_H
14 #define __SCALARPARTICLEDISTRIBUTIONMASTER_H
15 
16 //--- project includes ---
17 #include "ParticleFieldMaster.h"
18 #include "realdist.h"
19 
20 class TML_Comm;
21 
32 {
33  protected:
34  RealDist* m_dist;
35  int m_dt_write;
36  bool m_is_global;
37  bool m_is_writing_time;
38 
39  public:
40  ScalarParticleDistributionMaster(TML_Comm*,const string&,const string&,const string&,int,int,int,int,double,double,int);
41  ScalarParticleDistributionMaster(TML_Comm*,const string&,const string&,const string&,int,int,int,int,double,double,int,int,int);
43 
44  virtual bool needSave(int);
45  virtual void collect();
46  virtual void write();
47 };
48 
49 #endif //__SCALARPARTICLEDISTRIBUTIONMASTER_H