Skip to content

Commit f5b9fba

Browse files
committed
Use the correct length ofr dimensions (to get CG dimensions to work).
1 parent f72d7da commit f5b9fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/ParaGridIO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void ParaGridIO::dumpModelState(
275275
for (auto entry : ModelArray::definedDimensions) {
276276
ModelArray::Dimension dim = entry.first;
277277
size_t dimSz = (dimCompMap.count(dim)) ? ModelArray::nComponents(dimCompMap.at(dim))
278-
: dimSz = entry.second.globalLength;
278+
: dimSz = entry.second.localLength;
279279
ncFromMAMap[dim] = dataGroup.addDim(entry.second.name, dimSz);
280280
// TODO Do I need to add data, even if it is just integers 0...n-1?
281281
}

0 commit comments

Comments
 (0)