- Timestamp:
- 03/23/16 16:11:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/generic_algorithm_transformation.hpp
r827 r829 22 22 { 23 23 public: 24 // Stupid global index map, it must be replaced by tuple 25 // Mapping between global index map of DESTINATION and its local index with pair of global index of SOURCE and weights 26 typedef boost::unordered_map<size_t, std::vector<std::pair<int, std::pair<size_t,double> > > > DestinationIndexMap; 27 protected: 28 typedef boost::unordered_map<size_t,int> GlobalLocalMap; 29 30 public: 24 31 CGenericAlgorithmTransformation(); 25 32 … … 30 37 const std::vector<int>& gridSrcGlobalDim, 31 38 const std::vector<size_t>& globalIndexGridDestSendToServer, 32 std::map<size_t, std::vector<std::pair<size_t,double> > >& globaIndexWeightFromDestToSource); 39 const std::vector<int>& localIndexGridSendToServer, 40 DestinationIndexMap& globaIndexWeightFromDestToSource); 33 41 34 42 std::vector<StdString> getIdAuxInputs(); … … 46 54 \param[in] elementPositionInGrid position of the element in the grid (for example: a grid with one domain and one axis, position of domain is 1, position of axis is 2) 47 55 \param[in] gridDestGlobalDim dimension size of destination grid (it should share the same size for all dimension, maybe except the element on which transformation is performed) 48 \param[in] global IndexGridDestSendToServer global index of destination grid which are to be sent to server(s), this array is already acsending sorted49 \param[in/out] global IndexDestGridarray of global index (for 2d grid, this array maybe a line, for 3d, this array may represent a plan). It should be preallocated56 \param[in] globalLocalIndexDestSendToServerMap pair of global index and local index of destination grid which are to be sent to server(s), this array is already acsending sorted 57 \param[in/out] globalLocalIndexDestMap array of global index (for 2d grid, this array maybe a line, for 3d, this array may represent a plan). It should be preallocated 50 58 \param[in/out] globalIndexSrcGrid array of global index of source grid (for 2d grid, this array is a line, for 3d, this array represents a plan). It should be preallocated 51 59 */ … … 56 64 const std::vector<int>& gridDestGlobalDim, 57 65 const std::vector<int>& gridSrcGlobalDim, 58 const std::vector<size_t>& globalIndexGridDestSendToServer,59 CArray<size_t,1>& globalIndexDestGrid,66 const GlobalLocalMap& globalLocalIndexDestSendToServerMap, 67 std::vector<std::pair<size_t,int> >& globalLocalIndexDestMap, 60 68 std::vector<std::vector<size_t> >& globalIndexSrcGrid) = 0; 61 69
Note: See TracChangeset
for help on using the changeset viewer.