ESyS-Particle  2.3
pi_storage_single.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
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
virtual bool update()
Definition: pi_storage_single.hpp:22
virtual void calcForces()
Definition: pi_storage_single.hpp:47
ParallelInteractionStorage_Single(AParallelParticleArray *, const typename I::ParameterType &)
Definition: pi_storage_single.hpp:16
templated abstract base class for parallel interaction storage array. Adds the vector of interactions...
Definition: CheckedScalarInteractionFieldSlave.h:19
virtual void tryInsert(const vector< int > &)
do nothing
Definition: pi_storage_single.h:38
virtual void exchange()
Definition: pi_storage_single.h:36
I::ParameterType m_param
Definition: pi_storage_single.h:29
virtual void setTimeStepSize(double dt)
Definition: pi_storage_single.hpp:65
abstract base class for parallel interaction storage array
Definition: pi_storage.h:44
virtual void addExIG(AParallelInteractionStorage *)
Definition: pi_storage_single.h:34
virtual void rebuild()
do nothing
Definition: pi_storage_single.h:37
parallel storage array without exchange for dynamically created single particle interactions (i...
Definition: pi_storage_single.h:26
abstract base class for parallel particle storage array
Definition: pp_array.h:41
virtual bool isIn(const vector< int > &)
do nothing
Definition: pi_storage_single.h:39