Changeset 2137 for XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_inverse.cpp
- Timestamp:
- 05/30/21 23:30:01 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/src/transformation/axis_algorithm/axis_algorithm_inverse.cpp
r2030 r2137 52 52 TRY 53 53 { 54 axisDestination->checkAttributes() ; 54 55 if (axisDestination->n_glo.getValue() != axisSource->n_glo.getValue()) 55 56 { … … 62 63 auto& transMap = this->transformationMapping_; 63 64 64 int globalIndexSize = axisSource->index.numElements(); 65 for (int idx = 0; idx < globalIndexSize; ++idx) 66 { 67 //transMap[axisDestination->index(idx)] = globalIndexSize-axisDestination->index(idx)-1; 68 transMap[axisSource->index(idx)] = globalIndexSize-axisSource->index(idx)-1; 65 int globalIndexSize = axisDestination->n_glo.getValue(); 66 for (int idx = 0; idx < axisDestination->index.numElements(); ++idx) 67 { 68 transMap[axisDestination->index(idx)] = globalIndexSize-axisDestination->index(idx)-1; 69 69 } 70 70
Note: See TracChangeset
for help on using the changeset viewer.