Changeset 2257 for XIOS/dev


Ignore:
Timestamp:
11/10/21 16:21:05 (3 years ago)
Author:
jderouillat
Message:

Fix bounds management in implement axis_inverse such as a no_data_modification transformation

File:
1 edited

Legend:

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

    r2256 r2257  
    134134  if (axisSrc_->hasBounds) 
    135135  { 
    136     axisDestination->bounds.resize(indexSize); 
    137     for (size_t i = 0; i < indexSize ; ++i) 
     136    axisDestination->bounds.resize(2,indexSize); 
     137    for (int i = 0; i < indexSize ; ++i) 
    138138    { 
    139       axisDestination->bounds(i) = axisSource->bounds(i); 
     139      axisDestination->bounds(0,i) = axisSource->bounds(0,i); 
     140      axisDestination->bounds(1,i) = axisSource->bounds(1,i); 
    140141    } 
    141142  } 
Note: See TracChangeset for help on using the changeset viewer.