Skip to content

Commit

Permalink
BP5Serializer: handle local variables that use operators (#3859)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Eisenhauer <eisen@cc.gatech.edu>
  • Loading branch information
caitlinross and eisenhauer authored Oct 20, 2023
1 parent 6f33d87 commit 2f581ec
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 @@ -733,7 +733,8 @@ void BP5Serializer::Marshal(void *Variable, const char *Name, const DataType Typ
for (size_t i = 0; i < DimCount; i++)
{
tmpCount.push_back(Count[i]);
tmpOffsets.push_back(Offsets[i]);
if (Offsets)
tmpOffsets.push_back(Offsets[i]);
}
size_t AllocSize = ElemCount * ElemSize + 100;
BufferV::BufferPos pos = CurDataBuffer->Allocate(AllocSize, ElemSize);
Expand Down

0 comments on commit 2f581ec

Please sign in to comment.