We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba2b473 commit 62df6e5Copy full SHA for 62df6e5
src/IO/ADIOS/ADIOS2IOHandler.cpp
@@ -2421,7 +2421,23 @@ ERROR: Variable ')"[1] + varName +
2421
}
2422
else
2423
{
2424
- var.SetShape(shape);
+ auto const &old_shape = var.Shape();
2425
+ bool shape_changed = old_shape.size() != shape.size();
2426
+ if (!shape_changed)
2427
+ {
2428
+ for (size_t i = 0; i < old_shape.size(); ++i)
2429
2430
+ if (old_shape[i] != shape[i])
2431
2432
+ shape_changed = true;
2433
+ break;
2434
+ }
2435
2436
2437
+ if (shape_changed)
2438
2439
+ var.SetShape(shape);
2440
2441
if (count.size() > 0)
2442
2443
var.SetSelection({start, count});
0 commit comments