Changeset 1332


Ignore:
Timestamp:
11/17/17 16:37:44 (6 years ago)
Author:
oabramkina
Message:

Fixing a minor bug in writing axis bounds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/io/nc4_data_output.cpp

    r1309 r1332  
    12371237                  SuperClassWriter::writeData(axis_value, axisid, isCollective, 0); 
    12381238 
     1239                axis_bounds.resize(2, indexToWrite.numElements()); 
     1240                for (int i = 0; i < nbWritten; ++i) 
     1241                { 
     1242                  axis_bounds(0, i) = axis->bounds(0, int(indexToWrite(i))); 
     1243                  axis_bounds(1, i) = axis->bounds(1, int(indexToWrite(i))); 
     1244                } 
     1245 
     1246 
    12391247                if (!axis->bounds.isEmpty() && axis->label.isEmpty()) 
    1240                   SuperClassWriter::writeData(axis->bounds, axisBoundsId, isCollective, 0); 
     1248                  SuperClassWriter::writeData(axis_bounds, axisBoundsId, isCollective, 0); 
    12411249 
    12421250                // Need to check after 
     
    12671275                    axis_bounds(1, i) = axis->bounds(1, int(indexToWrite(i))); 
    12681276                  } 
    1269                   SuperClassWriter::writeData(axis->bounds, axisBoundsId, isCollective, 0, &startBounds, &countBounds); 
     1277                  SuperClassWriter::writeData(axis_bounds, axisBoundsId, isCollective, 0, &startBounds, &countBounds); 
    12701278                } 
    12711279 
Note: See TracChangeset for help on using the changeset viewer.