ESyS-Particle  4.0.1
pi_storage_single.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 __PARALLEL_INTERACTION_STORAGE_SINGLE_H
00014 #define __PARALLEL_INTERACTION_STORAGE_SINGLE_H
00015 
00016 #include "pis/pi_storage.h"
00017 #include <vector>
00018 
00019 //--- IO includes ---
00020 
00025 template<typename P,typename I>
00026 class ParallelInteractionStorage_Single : public TParallelInteractionStorage<I>
00027 {
00028  protected:
00029   typename I::ParameterType m_param;
00030 
00031  public:
00032   ParallelInteractionStorage_Single(AParallelParticleArray*,const typename I::ParameterType&);
00033 
00034   virtual void addExIG(AParallelInteractionStorage*){}; // do nothing
00035   virtual bool update();
00036   virtual void exchange(){}; 
00037   virtual void rebuild(){}; 
00038   virtual void tryInsert(const vector<int>&){};
00039   virtual bool isIn(const vector<int>&){return true;}; 
00040   virtual void calcForces();
00041   virtual void setTimeStepSize(double dt);
00042 };
00043 
00044 #include "pi_storage_single.hpp"
00045 
00046 #endif //__PARALLEL_INTERACTION_STORAGE_SINGLE_H