Skip to content

Commit 8cd8993

Browse files
committed
writer/adios2: fix issue with local variables
1 parent a46757b commit 8cd8993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kg/include/kg/io/FileAdios2.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ inline void FileAdios2::putVariable(const std::string& name, const T* data,
7272
if (!selection.start.empty()) {
7373
v.SetSelection({selection.start, selection.count});
7474
} else {
75-
if (!shape.empty()) {
75+
if (!shape.empty() && shape[0] != LocalValueDim) {
7676
v.SetSelection({kg::io::Dims({0}), shape});
7777
}
7878
}

0 commit comments

Comments
 (0)