Changeset 2136


Ignore:
Timestamp:
05/10/21 12:09:15 (3 months ago)
Author:
jderouillat
Message:

Fixes to reenable reduce_axis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_reduce_axis.cpp

    r1999 r2136  
    5252  eliminateRedondantSrc_= false ; 
    5353  algo->checkValid(axisDestination, axisSource); 
     54  axisDestination->checkAttributes() ; 
    5455 
    5556  switch (algo->operation) 
     
    7273         << "Axis source " <<axisSource->getId() << std::endl 
    7374         << "Axis destination " << axisDestination->getId()); 
     75  } 
    7476 
    75     TransformationIndexMap& transMap = this->transformationMapping_; 
    76     CArray<int,1>& axisDstIndex = axisDestination->index; 
    77     int nbAxisIdx = axisDstIndex.numElements(); 
    78     for (int idxAxis = 0; idxAxis < nbAxisIdx; ++idxAxis) 
    79     { 
    80       int globalAxisIdx = axisDstIndex(idxAxis); 
    81       transMap[globalAxisIdx].resize(1); 
    82       transMap[globalAxisIdx][0]=globalAxisIdx ;       
    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  } 
    8486 
    85   } 
    8687  
    8788  axisDestination->checkAttributes() ; 
Note: See TracChangeset for help on using the changeset viewer.