ESyS-Particle  4.0.1
pi_storage_ed.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_ED_H
00014 #define __PARALLEL_INTERACTION_STORAGE_ED_H
00015 
00016 //--- project includes ---
00017 #include "pi_storage_e.h"
00018 
00019 //--- STL includes ---
00020 #include <vector>
00021 using std::vector;
00022 
00023 //--- IO includes ---
00024 
00029 template<typename P,typename I>
00030 class ParallelInteractionStorage_ED : public ParallelInteractionStorage_E<P,I>
00031 {
00032  public:
00033   //  typedef I ParallelInteractionStorage_ED::interaction_type;
00034 
00035  protected:
00036   int m_update_timestamp;
00037   AParallelInteractionStorage* m_exIG; //<! if an interaction is in m_exIG, it can't be in m_interactions
00038 
00039  public:
00040   ParallelInteractionStorage_ED(AParallelParticleArray*,const typename I::ParameterType&);
00041 
00042   virtual void addExIG(AParallelInteractionStorage*);
00043   virtual bool update();
00044   virtual void setTimeStepSize(double dt);
00045 
00046   virtual void saveCheckPointData(std::ostream &oStream);
00047   virtual void loadCheckPointData(std::istream &iStream);
00048 
00049   virtual void calcHeatTrans();
00050   virtual void calcHeatFrict();
00051 
00052   virtual bool willSave(){ return true;};
00053 };
00054 
00055 #include "pis/pi_storage_ed.hpp"
00056 
00057 #endif // __PARALLEL_INTERACTION_STORAGE_ED_H