ESyS-Particle  2.2.2
pi_storage_ne.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2013 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 __PARALLEL_INTERACTION_STORAGE_NE_H
14 #define __PARALLEL_INTERACTION_STORAGE_NE_H
15 
16 //--- project includes ---
17 #include "pis/pi_storage.h"
18 
19 //--- STL includes ---
20 #include <vector>
21 
22 //--- IO includes ---
23 
27 template<typename P,typename I>
29 {
30  protected:
32  vector<AParallelInteractionStorage*> m_exIG; //<! if an interaction is in m_exIG, it can't be in m_interactions
33 
34  set<pair<int,int> > m_set; // evil hack, should be vector<int>, not pair<int,int>
35  typename I::ParameterType m_param;
36 
37  bool isExcluded(const vector<int>); //<! check if a particle pair is in one of the excluding IGs
38 
39  public:
40  ParallelInteractionStorage_NE(AParallelParticleArray*,const typename I::ParameterType&);
41 
42  virtual void addExIG(AParallelInteractionStorage*);
43  virtual bool update();
44  virtual void exchange(){};
45  virtual void rebuild(){};
46  virtual void tryInsert(const vector<int>&){};
47  virtual bool isIn(const vector<int>&);
48  virtual void calcForces();
49  virtual void setTimeStepSize(double dt)
50  {
51  }
52  virtual void calcHeatTrans();
53 };
54 
55 #include "pis/pi_storage_ne.hpp"
56 
57 #endif // __PARALLEL_INTERACTION_STORAGE_NE_H