Changeset 796 for XIOS


Ignore:
Timestamp:
11/25/15 17:39:47 (8 years ago)
Author:
mhnguyen
Message:

Fixing minor bug on writing axis_bounds

+) Use the correct start and count for axis bounds

Test
+) On Curie
+) test with NEMO passed

File:
1 edited

Legend:

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

    r774 r796  
    694694              axis_value = axis->value_srv; 
    695695 
    696               std::vector<StdSize> start(1) ; 
    697               std::vector<StdSize> count(1) ; 
    698               start[0] = zoom_begin_srv-axis->global_zoom_begin; 
    699               count[0] = zoom_size_srv; 
     696              std::vector<StdSize> start(1), startBounds(2) ; 
     697              std::vector<StdSize> count(1), countBounds(2) ; 
     698              start[0] = startBounds[0] = zoom_begin_srv-axis->global_zoom_begin; 
     699              count[0] = countBounds[0] = zoom_size_srv; 
     700              startBounds[1] = 0; 
     701              countBounds[1] = 2; 
    700702              SuperClassWriter::writeData(axis_value, axisid, isCollective, 0, &start, &count); 
    701703 
    702704              if (!axis->bounds.isEmpty()) 
    703                 SuperClassWriter::writeData(axis->bound_srv, axisBoundsId, isCollective, 0, &start, &count); 
     705                SuperClassWriter::writeData(axis->bound_srv, axisBoundsId, isCollective, 0, &startBounds, &countBounds); 
    704706 
    705707              SuperClassWriter::definition_start(); 
Note: See TracChangeset for help on using the changeset viewer.