Ignore:
Timestamp:
03/26/21 10:00:29 (3 years ago)
Author:
jderouillat
Message:

Fixes to reenable inverse_axis and extract_domain_to_axis : call checkAttributes to start transformations and manage index size to define correctly transMap (for inverse axis)

File:
1 edited

Legend:

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

    r1999 r2117  
    5252TRY 
    5353{ 
     54  axisDestination->checkAttributes() ; 
    5455  if (axisDestination->n_glo.getValue() != axisSource->n_glo.getValue()) 
    5556  { 
     
    6263  auto& transMap = this->transformationMapping_; 
    6364 
    64   int globalIndexSize = axisDestination->index.size(); 
    65   for (int idx = 0; idx < globalIndexSize; ++idx) 
     65  int globalIndexSize = axisDestination->n_glo.getValue(); 
     66  for (int idx = 0; idx < axisDestination->index.numElements(); ++idx) 
    6667  { 
    6768    transMap[axisDestination->index(idx)] = globalIndexSize-axisDestination->index(idx)-1; 
Note: See TracChangeset for help on using the changeset viewer.