ESyS-Particle  4.0.1
pi_storage_ne.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_NE_H
00014 #define __PARALLEL_INTERACTION_STORAGE_NE_H
00015 
00016 //--- project includes ---
00017 #include "pis/pi_storage.h"
00018 
00019 //--- STL includes ---
00020 #include <vector>
00021 
00022 //--- IO includes ---
00023 
00027 template<typename P,typename I>
00028 class ParallelInteractionStorage_NE : public TParallelInteractionStorage<I>
00029 {
00030  protected:
00031   int m_update_timestamp;
00032   AParallelInteractionStorage* m_exIG; //<! if an interaction is in m_exIG, it can't be in m_interactions
00033   set<pair<int,int> > m_set; // evil hack, should be vector<int>, not pair<int,int>
00034   typename I::ParameterType m_param;
00035 
00036  public:
00037   ParallelInteractionStorage_NE(AParallelParticleArray*,const typename I::ParameterType&);
00038 
00039   virtual void addExIG(AParallelInteractionStorage*);
00040   virtual bool update();
00041   virtual void exchange(){}; 
00042   virtual void rebuild(){}; 
00043   virtual void tryInsert(const vector<int>&){};
00044   virtual bool isIn(const vector<int>&);
00045   virtual void calcForces();
00046   virtual void setTimeStepSize(double dt)
00047   {
00048   }
00049   virtual void calcHeatTrans();
00050 };
00051 
00052 #include "pis/pi_storage_ne.hpp"
00053 
00054 #endif // __PARALLEL_INTERACTION_STORAGE_NE_H