Changeset 841 for XIOS/trunk/src/transformation/grid_transformation.hpp
- Timestamp:
- 04/26/16 16:03:51 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/grid_transformation.hpp
r832 r841 37 37 typedef std::list<std::pair<int,std::pair<ETranformationType,int> > > ListAlgoType; 38 38 typedef boost::unordered_map<size_t, std::vector<std::pair<int, std::pair<size_t,double> > > > DestinationIndexMap; 39 typedef std::map<int, CArray<int,1> > SendingIndexGridSourceMap; 40 typedef std::map<int,std::vector<std::vector<std::pair<int,double> > > > RecvIndexGridDestinationMap; 39 41 40 42 public: … … 45 47 void computeAll(const std::vector<CArray<double,1>* >& dataAuxInput=std::vector<CArray<double,1>* >(), Time timeStamp = 0); 46 48 47 const std::map<int, CArray<int,1> >& getLocalIndexToSendFromGridSource() const; 48 const std::map<int, std::vector<std::vector<std::pair<int,double> > > >& getLocalIndexToReceiveOnGridDest() const; 49 const std::list<SendingIndexGridSourceMap>& getLocalIndexToSendFromGridSource() const; 50 const std::list<RecvIndexGridDestinationMap>& getLocalIndexToReceiveOnGridDest() const; 51 const std::list<size_t>& getNbLocalIndexToReceiveOnGridDest() const; 52 49 53 CGrid* getGridSource() { return originalGridSource_; } 50 54 CGrid* getGridDestination() { return gridDestination_; } … … 64 68 void selectAlgo(int elementPositionInGrid, ETranformationType transType, int transformationOrder, bool isDomainAlgo); 65 69 void setUpGrid(int elementPositionInGrid, ETranformationType transType, int nbTransformation); 66 void computeFinalTransformationMapping(); 67 void computeTransformationFromOriginalGridSource(const DestinationIndexMap& globaIndexMapFromDestToSource); 68 void updateFinalGridDestination(); 70 // void computeFinalTransformationMapping(); 71 // void computeTransformationFromOriginalGridSource(const DestinationIndexMap& globaIndexMapFromDestToSource); 72 void computeTransformationMapping(const DestinationIndexMap& globalIndexWeightFromDestToSource); 73 // void updateFinalGridDestination(); 69 74 bool isSpecialTransformation(ETranformationType transType); 70 75 … … 96 101 97 102 //! Local index of data to send from grid source 98 std:: map<int, CArray<int,1>> localIndexToSendFromGridSource_;103 std::list<SendingIndexGridSourceMap> localIndexToSendFromGridSource_; 99 104 100 105 //! Local index of data to receive on grid destination 101 std::map<int,std::vector<std::vector<std::pair<int,double> > > > localIndexToReceiveOnGridDest_; 106 std::list<RecvIndexGridDestinationMap> localIndexToReceiveOnGridDest_; 107 108 //! Number of local index of data to receive on grid destination 109 std::list<size_t> nbLocalIndexOnGridDest_; 102 110 103 111 //! Position of axis and domain in grid
Note: See TracChangeset
for help on using the changeset viewer.