We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a10fcd commit 6400651Copy full SHA for 6400651
src/IO/ADIOS/ADIOS2IOHandler.cpp
@@ -2497,7 +2497,23 @@ ERROR: Variable ')"[1] + varName +
2497
}
2498
else
2499
{
2500
- var.SetShape(shape);
+ auto const &old_shape = var.Shape();
2501
+ bool shape_changed = old_shape.size() != shape.size();
2502
+ if (!shape_changed)
2503
+ {
2504
+ for (size_t i = 0; i < old_shape.size(); ++i)
2505
2506
+ if (old_shape[i] != shape[i])
2507
2508
+ shape_changed = true;
2509
+ break;
2510
+ }
2511
2512
2513
+ if (shape_changed)
2514
2515
+ var.SetShape(shape);
2516
2517
if (count.size() > 0)
2518
2519
var.SetSelection({start, count});
0 commit comments