ESyS-Particle  4.0.1
trimesh_pis.h
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 __TRIMESH_PIS_H
00014 #define __TRIMESH_PIS_H
00015 
00016 // --- project includes ---
00017 #include "pis/pi_storage.h"
00018 
00019 // --- STL includes ---
00020 #include <set>
00021 #include <list>
00022 
00027 template<class ParticleType> 
00028 class TriMesh_PIS : public AParallelInteractionStorage
00029 {
00030  protected:
00031   int m_update_timestamp;
00032   TriMesh* m_mesh;
00033   AParallelInteractionStorage* m_exIG; //<! if an interaction is in m_exIG, it can't be in m_interactions
00034 
00035  public:
00036   TriMesh_PIS(TriMesh*,ParallelParticleArray<ParticleType>*);
00037   virtual ~TriMesh_PIS();
00038 
00039   virtual void addExIG(AParallelInteractionStorage*);
00040   virtual AFieldSlave* generateNewScalarFieldSlave(TML_Comm*,const string&,int,int,int,int);
00041   virtual AFieldSlave* generateNewVectorFieldSlave(TML_Comm*,const string&,int,int,int,int);
00042 };
00043 
00044 #include "pis/trimesh_pis.hpp"
00045 
00046 #endif //__TRIMESH_PIS_H