ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef __MESH2D_PIS_H 00014 #define __MESH2D_PIS_H 00015 00016 // --- project includes --- 00017 #include "pi_storage.h" 00018 00019 // --- STL includes --- 00020 #include <set> 00021 #include <list> 00022 00023 using std::set; 00024 using std::list; 00025 00035 template<class ParticleType> 00036 class Mesh2D_PIS : public AParallelInteractionStorage 00037 { 00038 protected: 00039 int m_update_timestamp; 00040 Mesh2D* m_mesh; 00041 AParallelInteractionStorage* m_exIG; //<! if an interaction is in m_exIG, it can't be in m_interactions 00042 00043 public: 00044 Mesh2D_PIS(Mesh2D*,ParallelParticleArray<ParticleType>*); 00045 virtual ~Mesh2D_PIS(); 00046 00047 virtual void addExIG(AParallelInteractionStorage*); 00048 virtual AFieldSlave* generateNewScalarFieldSlave(TML_Comm*,const string&,int,int,int,int); 00049 virtual AFieldSlave* generateNewVectorFieldSlave(TML_Comm*,const string&,int,int,int,int); 00050 00051 virtual void saveCheckPointData(std::ostream&); 00052 virtual void loadCheckPointData(std::istream&); 00053 }; 00054 00055 #include "mesh2d_pis.hpp" 00056 00057 #endif //__MESH2D_PIS_H