Skip to content

Commit

Permalink
Derived variables of type StoreData should not record the expression …
Browse files Browse the repository at this point in the history
…string (ornladios#4247)

(cherry picked from commit b6242e8)
  • Loading branch information
anagainaru authored and vicentebolea committed Oct 24, 2024
1 parent 057ceeb commit fc5a406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/adios2/toolkit/format/bp5/BP5Serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ BP5Serializer::BP5WriterRec BP5Serializer::CreateWriterRec(void *Variable, const
// and Offsets matching _MetaArrayRec
const char *ExprString = NULL;
#ifdef ADIOS2_HAVE_DERIVED_VARIABLE
ExprString = VD ? VD->m_Expr.ExprString.c_str() : NULL;
if (VD && (VD->GetDerivedType() != DerivedVarType::StoreData))
ExprString = VD->m_Expr.ExprString.c_str();
#endif
char *LongName =
BuildLongName(Name, VB->m_ShapeID, (int)Type, ElemSize, TextStructID, ExprString);
Expand Down

0 comments on commit fc5a406

Please sign in to comment.