Changeset 829 for XIOS/trunk/src/transformation/transformation_mapping.hpp
- Timestamp:
- 03/23/16 16:11:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/transformation_mapping.hpp
r630 r829 28 28 { 29 29 public: 30 typedef boost::unordered_map<size_t, std::vector<std::pair<int, std::pair<size_t,double> > > > DestinationIndexMap; 31 typedef boost::unordered_map<int,std::vector<std::vector<std::pair<int, std::pair<size_t,double> > > > > ReceivedIndexMap; 32 typedef boost::unordered_map<int,std::vector<std::pair<int, size_t> > > SentIndexMap; 33 34 public: 30 35 /** Default constructor */ 31 36 CTransformationMapping(CGrid* destination, CGrid* source); … … 34 39 ~CTransformationMapping(); 35 40 36 void computeTransformationMapping(const std::map<size_t, std::vector<std::pair<size_t,double> > >& globaIndexMapFromDestToSource);37 const std::map<int,std::vector<std::vector<std::pair<size_t,double> > > >& getGlobalIndexReceivedOnGridDestMapping() const;38 const std::map<int,std::vector<size_t> >& getGlobalIndexSendToGridDestMapping() const;41 void computeTransformationMapping(const DestinationIndexMap& globaIndexMapFromDestToSource); 42 const ReceivedIndexMap& getGlobalIndexReceivedOnGridDestMapping() const; 43 const SentIndexMap& getGlobalIndexSendToGridDestMapping() const; 39 44 40 45 protected: … … 43 48 44 49 //! Global index mapping of grid source and grid destination between two clients 45 CClient ServerMappingDistributed* gridIndexClientClientMapping_;50 CClientClientDHTPairIntInt* gridIndexClientClientMapping_; 46 51 47 52 //! Mapping of client rank of grid source and global index received in grid destination 48 std::map<int,std::vector<std::vector<std::pair<size_t,double> > > >globalIndexReceivedOnGridDestMapping_;53 ReceivedIndexMap globalIndexReceivedOnGridDestMapping_; 49 54 50 55 //! Mapping of client rank of grid destination and global index to send from grid source 51 std::map<int,std::vector<size_t> >globalIndexSendToGridDestMapping_;56 SentIndexMap globalIndexSendToGridDestMapping_; 52 57 }; 53 58
Note: See TracChangeset
for help on using the changeset viewer.