Ignore:
Timestamp:
06/11/15 12:04:52 (6 years ago)
Author:
rlacroix
Message:

Fix axis bounds output.

The data were written in the wrong order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/output/nc4_data_output.cpp

    r614 r615  
    607607              if (!axis->bounds.isEmpty()) 
    608608              { 
    609                 CArray<double,2> axisBounds(zoom_size, 2); 
     609                CArray<double,2> axisBounds(2, zoom_size); 
    610610                for (int i = 0; i < zoom_size_srv; i++) 
    611611                { 
    612                   axisBounds(i, 0) = axis->bounds(i + zoom_begin_srv, 0); 
    613                   axisBounds(i, 1) = axis->bounds(i + zoom_begin_srv, 1); 
     612                  axisBounds(0, i) = axis->bounds(i + zoom_begin_srv, 0); 
     613                  axisBounds(1, i) = axis->bounds(i + zoom_begin_srv, 1); 
    614614                } 
    615615                SuperClassWriter::writeData(axisBounds, axisBoundsId, isCollective, 0); 
Note: See TracChangeset for help on using the changeset viewer.