Changeset 2136 for XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation
- Timestamp:
- 05/10/21 12:09:15 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_reduce_axis.cpp
r1999 r2136 52 52 eliminateRedondantSrc_= false ; 53 53 algo->checkValid(axisDestination, axisSource); 54 axisDestination->checkAttributes() ; 54 55 55 56 switch (algo->operation) … … 72 73 << "Axis source " <<axisSource->getId() << std::endl 73 74 << "Axis destination " << axisDestination->getId()); 75 } 74 76 75 76 77 78 79 80 81 82 83 77 TransformationIndexMap& transMap = this->transformationMapping_; 78 CArray<int,1>& axisDstIndex = axisDestination->index; 79 int nbAxisIdx = axisDstIndex.numElements(); 80 for (int idxAxis = 0; idxAxis < nbAxisIdx; ++idxAxis) 81 { 82 int globalAxisIdx = axisDstIndex(idxAxis); 83 transMap[globalAxisIdx].resize(1); 84 transMap[globalAxisIdx][0]=globalAxisIdx ; 85 } 84 86 85 }86 87 87 88 axisDestination->checkAttributes() ;
Note: See TracChangeset
for help on using the changeset viewer.