From 2f8b0824d8bed5e7ee954fe9b73775d76bb2d977 Mon Sep 17 00:00:00 2001 From: Greg Eisenhauer Date: Wed, 3 Jan 2024 12:52:30 -0500 Subject: [PATCH] Fix Var reference --- source/adios2/toolkit/format/bp5/BP5Serializer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/adios2/toolkit/format/bp5/BP5Serializer.cpp b/source/adios2/toolkit/format/bp5/BP5Serializer.cpp index 93af9a9528..583fca41a7 100644 --- a/source/adios2/toolkit/format/bp5/BP5Serializer.cpp +++ b/source/adios2/toolkit/format/bp5/BP5Serializer.cpp @@ -468,6 +468,8 @@ void BP5Serializer::AddDoubleArrayField(FMFieldList *FieldP, int *CountP, const void BP5Serializer::ValidateWriterRec(BP5Serializer::BP5WriterRec Rec, void *Variable) { core::VariableBase *VB = static_cast(Variable); + + Rec->Key = Variable; // reset this, because Variable might have been destroyed and recreated if ((VB->m_Operations.size() == 0) && Rec->OperatorType) { // removed operator case