ESyS-Particle  4.0.1
ScalarParticleFieldSlave.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 __SCALAR_PARTICLE_FIELD_SLAVE_H
00014 #define __SCALAR_PARTICLE_FIELD_SLAVE_H
00015 
00016 // -- project includes --
00017 #include "FieldSlave.h"
00018 
00019 template <class T> class ParallelParticleArray;
00020 class TML_Comm;
00021 
00030 template <typename T>
00031 class ScalarParticleFieldSlave : public AFieldSlave
00032 {
00033  private:
00034   virtual void SendDataFull();
00035   virtual void SendDataSum();
00036   virtual void SendDataMax();
00037 
00038  protected: 
00039   typename T::ScalarFieldFunction m_rdf;
00040   ParallelParticleArray<T>* m_ppa;
00041 
00042  public:
00043   ScalarParticleFieldSlave(TML_Comm*,ParallelParticleArray<T>*,typename T::ScalarFieldFunction);
00044 
00045   virtual void sendData();
00046 };
00047 
00048 #include "ScalarParticleFieldSlave.hpp"
00049 
00050 #endif //__SCALAR_PARTICLE_FIELD_SLAVE_H