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