From 2d8a099609ad03fcd060f954a51c8c19e0c1942e Mon Sep 17 00:00:00 2001 From: Greg Eisenhauer Date: Mon, 4 Mar 2024 15:44:02 -0500 Subject: [PATCH] Fix Reord to use MinBlocksInfo where appropriate (#4071) --- source/utils/adios_reorganize/Reorganize.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/utils/adios_reorganize/Reorganize.cpp b/source/utils/adios_reorganize/Reorganize.cpp index dc1288fe15..c4121a5a0c 100644 --- a/source/utils/adios_reorganize/Reorganize.cpp +++ b/source/utils/adios_reorganize/Reorganize.cpp @@ -499,8 +499,16 @@ int Reorganize::ProcessMetadata(core::Engine &rStream, core::IO &io, const core: if (v->m_ShapeID == adios2::ShapeID::LocalArray) \ { \ \ - auto blocks = rStream.BlocksInfo(*v, rStream.CurrentStep()); \ - nBlocks = blocks.size(); \ + const auto minBlocks = rStream.MinBlocksInfo(*v, step); \ + if (minBlocks) \ + { \ + nBlocks = minBlocks->BlocksInfo.size(); \ + } \ + else \ + { \ + auto blocks = rStream.BlocksInfo(*v, rStream.CurrentStep()); \ + nBlocks = blocks.size(); \ + } \ } \ variable = v; \ }