ESyS-Particle  4.0.1
pi_storage_single.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 __PARALLEL_INTERACTION_STORAGE_SINGLE_H
14 #define __PARALLEL_INTERACTION_STORAGE_SINGLE_H
15 
16 #include "pis/pi_storage.h"
17 #include <vector>
18 
19 //--- IO includes ---
20 
25 template<typename P,typename I>
27 {
28  protected:
29  typename I::ParameterType m_param;
30 
31  public:
32  ParallelInteractionStorage_Single(AParallelParticleArray*,const typename I::ParameterType&);
33 
34  virtual void addExIG(AParallelInteractionStorage*){}; // do nothing
35  virtual bool update();
36  virtual void exchange(){};
37  virtual void rebuild(){};
38  virtual void tryInsert(const vector<int>&){};
39  virtual bool isIn(const vector<int>&){return true;};
40  virtual void calcForces();
41  virtual void setTimeStepSize(double dt);
42 };
43 
44 #include "pi_storage_single.hpp"
45 
46 #endif //__PARALLEL_INTERACTION_STORAGE_SINGLE_H