From 0f4de152593da1822f7dc8e9da6489c2c9750f3e Mon Sep 17 00:00:00 2001 From: Greg Eisenhauer Date: Wed, 17 Jul 2024 18:33:20 -0400 Subject: [PATCH] Reset join state --- .../toolkit/format/bp5/BP5Deserializer.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/source/adios2/toolkit/format/bp5/BP5Deserializer.cpp b/source/adios2/toolkit/format/bp5/BP5Deserializer.cpp index 2e3d3e470b..374a96b1fc 100644 --- a/source/adios2/toolkit/format/bp5/BP5Deserializer.cpp +++ b/source/adios2/toolkit/format/bp5/BP5Deserializer.cpp @@ -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;