- Timestamp:
- 03/23/16 16:10:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/generic_algorithm_transformation.hpp
r668 r827 32 32 std::map<size_t, std::vector<std::pair<size_t,double> > >& globaIndexWeightFromDestToSource); 33 33 34 std::vector<StdString> getIdAuxInputs(); 35 34 36 /*! 35 37 Compute global index mapping from one element of destination grid to the corresponding element of source grid 36 38 */ 37 v irtual void computeIndexSourceMapping() = 0;39 void computeIndexSourceMapping(const std::vector<CArray<double,1>* >& dataAuxInputs = std::vector<CArray<double,1>* >()); 38 40 39 41 protected: … … 50 52 virtual void computeGlobalGridIndexFromGlobalIndexElement(int destGlobalIndex, 51 53 const std::vector<int>& srcGlobalIndex, 54 const std::vector<int>& destGlobalIndexPositionInGrid, 52 55 int elementPositionInGrid, 53 56 const std::vector<int>& gridDestGlobalDim, … … 57 60 std::vector<std::vector<size_t> >& globalIndexSrcGrid) = 0; 58 61 59 62 virtual void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >&) = 0; 60 63 61 64 protected: 62 std::map<int, std::vector<int> > transformationMapping_; 63 std::map<int, std::vector<double> > transformationWeight_; 65 //! Map between global index of destination element and source element 66 std::vector<std::map<int, std::vector<int> > > transformationMapping_; 67 //! Weight corresponding of source to destination 68 std::vector<std::map<int, std::vector<double> > > transformationWeight_; 69 //! Map of global index of destination element and corresponding global index of other elements in the same grid 70 //! By default, one index of an element corresponds to all index of remaining element in the grid. So it's empty 71 std::vector<std::map<int, std::vector<int> > > transformationPosition_; 72 73 //! Id of auxillary inputs which help doing transformation dynamically 74 std::vector<StdString> idAuxInputs_; 64 75 }; 65 76
Note: See TracChangeset
for help on using the changeset viewer.