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 __SCALAR_TRIANGLE_FIELD_SLAVE_H 00014 #define __SCALAR_TRIANGLE_FIELD_SLAVE_H 00015 00016 // -- project includes -- 00017 #include "Fields/FieldSlave.h" 00018 #include "Model/TriMesh.h" 00019 #include "tml/comm/comm.h" 00020 00021 // == STL includes -- 00022 #include <map> 00023 using std::map; 00024 using std::multimap; 00025 00035 class ScalarTriangleFieldSlave : public AFieldSlave 00036 { 00037 private: 00038 map<int,double> m_data; 00039 00040 protected: 00041 TriMesh *m_mesh; 00042 Triangle::ScalarFieldFunction m_rdf; 00043 virtual void SendDataFull(); 00044 virtual void SendDataFullDX(); 00045 00046 public: 00047 ScalarTriangleFieldSlave(TML_Comm*,TriMesh*,Triangle::ScalarFieldFunction); 00048 00049 virtual ~ScalarTriangleFieldSlave() 00050 { 00051 } 00052 00053 virtual void sendData(); 00054 }; 00055 00056 #endif // __SCALAR_TRIANGLE_FIELD_SLAVE_H