Skip to content

Commit

Permalink
Fix Reord to use MinBlocksInfo where appropriate (#4071)
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer authored Mar 4, 2024
1 parent 6f9849c commit 6b44e79
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/utils/adios_reorganize/Reorganize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
}
Expand Down

0 comments on commit 6b44e79

Please sign in to comment.