Skip to content

Commit

Permalink
Fix Var reference
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Jan 3, 2024
1 parent 071a418 commit 2f8b082
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/adios2/toolkit/format/bp5/BP5Serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<core::VariableBase *>(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
Expand Down

0 comments on commit 2f8b082

Please sign in to comment.