Changeset 1333


Ignore:
Timestamp:
11/17/17 16:52:57 (6 years ago)
Author:
oabramkina
Message:

Very minor correction of r1332.

File:
1 edited

Legend:

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

    r1332 r1333  
    12371237                  SuperClassWriter::writeData(axis_value, axisid, isCollective, 0); 
    12381238 
    1239                 axis_bounds.resize(2, indexToWrite.numElements()); 
    1240                 for (int i = 0; i < nbWritten; ++i) 
     1239                if (!axis->bounds.isEmpty() && axis->label.isEmpty()) 
    12411240                { 
    1242                   axis_bounds(0, i) = axis->bounds(0, int(indexToWrite(i))); 
    1243                   axis_bounds(1, i) = axis->bounds(1, int(indexToWrite(i))); 
     1241                    axis_bounds.resize(2, indexToWrite.numElements()); 
     1242                    for (int i = 0; i < nbWritten; ++i) 
     1243                    { 
     1244                      axis_bounds(0, i) = axis->bounds(0, int(indexToWrite(i))); 
     1245                      axis_bounds(1, i) = axis->bounds(1, int(indexToWrite(i))); 
     1246                    } 
     1247 
     1248                        SuperClassWriter::writeData(axis_bounds, axisBoundsId, isCollective, 0); 
    12441249                } 
    1245  
    1246  
    1247                 if (!axis->bounds.isEmpty() && axis->label.isEmpty()) 
    1248                   SuperClassWriter::writeData(axis_bounds, axisBoundsId, isCollective, 0); 
    12491250 
    12501251                // Need to check after 
Note: See TracChangeset for help on using the changeset viewer.