Changeset 1559 for XIOS/trunk/src/io/nc4_data_output.cpp
- Timestamp:
- 07/12/18 19:12:32 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/io/nc4_data_output.cpp
r1553 r1559 1175 1175 axis->computeWrittenCompressedIndex(comm_file); 1176 1176 1177 int zoom_size = (MULTI_FILE == SuperClass::type) ? axis->zoom_n.getValue() 1178 : axis->global_zoom_n.getValue(); 1179 1180 int zoom_count = axis->zoom_n; 1181 int zoom_begin = axis->zoom_begin; 1182 1183 if ((0 == axis->zoom_n) && (MULTI_FILE == SuperClass::type)) return; 1177 int size = (MULTI_FILE == SuperClass::type) ? axis->n.getValue() 1178 : axis->n_glo.getValue(); 1179 1180 if ((0 == axis->n) && (MULTI_FILE == SuperClass::type)) return; 1184 1181 1185 1182 std::vector<StdString> dims; … … 1200 1197 if (axis->dim_name.isEmpty()) axisDim = axisid; 1201 1198 else axisDim=axis->dim_name.getValue(); 1202 SuperClassWriter::addDimension(axisDim, zoom_size);1199 SuperClassWriter::addDimension(axisDim, size); 1203 1200 dims.push_back(axisDim); 1204 1201 … … 1344 1341 std::vector<StdSize> start(1), startBounds(2) ; 1345 1342 std::vector<StdSize> count(1), countBounds(2) ; 1346 start[0] = startBounds[0] = zoom_begin - axis->global_zoom_begin;1347 count[0] = countBounds[0] = zoom_count; // zoom_size1343 start[0] = startBounds[0] = axis->begin; 1344 count[0] = countBounds[0] = axis->n; 1348 1345 startBounds[1] = 0; 1349 1346 countBounds[1] = 2; … … 2616 2613 { 2617 2614 CAxis* axis = CAxis::get(axisList[idxAxis]); 2618 start.push_back(axis-> zoom_begin - axis->global_zoom_begin);2619 count.push_back(axis-> zoom_n);2615 start.push_back(axis->begin); 2616 count.push_back(axis->n); 2620 2617 --idx; 2621 2618 --idxAxis;
Note: See TracChangeset
for help on using the changeset viewer.