Skip to content

Commit

Permalink
Reset join state
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Jul 17, 2024
1 parent 9c4149e commit 0f4de15
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions source/adios2/toolkit/format/bp5/BP5Deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,16 @@ void BP5Deserializer::SetupForStep(size_t Step, size_t WriterCount)
m_Engine->m_IO.RemoveDerivedVariable(RecPair.second->VarName);
#endif
RecPair.second->Variable = NULL;
if (RecPair.second->OrigShapeID == ShapeID::JoinedArray)
{
auto VarRec = RecPair.second;
VarRec->JoinedDimen = SIZE_MAX;
VarRec->LastJoinedOffset = NULL;
VarRec->LastJoinedShape = NULL;
}
}
}
for (auto RecPair : VarByKey)
{
if (RecPair.second->OrigShapeID == ShapeID::JoinedArray)
{
auto VarRec = RecPair.second;
VarRec->JoinedDimen = SIZE_MAX;
VarRec->LastJoinedOffset = NULL;
VarRec->LastJoinedShape = NULL;
}
}
m_CurrentWriterCohortSize = WriterCount;
Expand Down

0 comments on commit 0f4de15

Please sign in to comment.