We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047c035 commit 83ab8abCopy full SHA for 83ab8ab
src/IO/ADIOS/ADIOS2IOHandler.cpp
@@ -2560,7 +2560,23 @@ namespace detail
2560
}
2561
else
2562
{
2563
- var.SetShape(shape);
+ auto const &old_shape = var.Shape();
2564
+ bool shape_changed = old_shape.size() != shape.size();
2565
+ if (!shape_changed)
2566
+ {
2567
+ for (size_t i = 0; i < old_shape.size(); ++i)
2568
2569
+ if (old_shape[i] != shape[i])
2570
2571
+ shape_changed = true;
2572
+ break;
2573
+ }
2574
2575
2576
+ if (shape_changed)
2577
2578
+ var.SetShape(shape);
2579
2580
if (count.size() > 0)
2581
2582
var.SetSelection({start, count});
0 commit comments