Skip to content

Commit

Permalink
Fix Reord to use MinBlocksInfo where appropriate (ornladios#4071)
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer authored and vicentebolea committed Apr 3, 2024
1 parent 76da99a commit 2d8a099
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 2d8a099

Please sign in to comment.