- Timestamp:
- 09/22/16 10:58:32 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/generic_algorithm_transformation.hpp
r918 r933 23 23 /*! 24 24 \class CGenericAlgorithmTransformation 25 This class defines the interface for all other inher ted algorithms class25 This class defines the interface for all other inherited algorithms class 26 26 */ 27 27 class CGenericAlgorithmTransformation 28 28 { 29 protected:30 typedef std::vector<std::pair<int, std::pair<size_t,double> > > DestinationGlobalIndex;31 29 public: 32 // Stupid global index map, it must be replaced by tuple 30 enum AlgoTransType { 31 ELEMENT_GENERATION = 0, 32 ELEMENT_MODIFICATION_WITHOUT_DATA = 1, 33 ELEMENT_MODIFICATION_WITH_DATA = 2, 34 ELEMENT_NO_MODIFICATION_WITH_DATA = 3, 35 ELEMENT_NO_MODIFICATION_WITHOUT_DATA = 4 36 } ; 37 38 public: 33 39 // Mapping between global index map of DESTINATION and its local index with pair of global index of SOURCE and weights 34 typedef boost::unordered_map<size_t, DestinationGlobalIndex> DestinationIndexMap;35 //36 40 typedef boost::unordered_map<int, boost::unordered_map<size_t, std::vector<std::pair<size_t,double> > > > SourceDestinationIndexMap; 37 41 … … 54 58 55 59 /*! 56 Apply a reductionoperation on local data.60 Apply a operation on local data. 57 61 \param [in] localIndex vector contains local index of local data output and the corresponding weight 58 62 \param [in] dataInput Pointer to the first element of data input array (in form of buffer) … … 67 71 68 72 std::vector<StdString> getIdAuxInputs(); 69 73 AlgoTransType type(); 70 74 /*! 71 75 Compute global index mapping from one element of destination grid to the corresponding element of source grid … … 123 127 //! Id of auxillary inputs which helps doing transformation dynamically 124 128 std::vector<StdString> idAuxInputs_; 129 AlgoTransType type_; 130 125 131 126 132 std::map<int, int> elementPositionInGridSrc2AxisPosition_, elementPositionInGridSrc2DomainPosition_, elementPositionInGridSrc2ScalarPosition_;
Note: See TracChangeset
for help on using the changeset viewer.