Skip to content

Commit

Permalink
Fix calculation of buffer size for Array serialize
Browse files Browse the repository at this point in the history
Need to add 1 for the new int
  • Loading branch information
billsacks committed Oct 12, 2023
1 parent 13ac9ca commit cbacd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Infrastructure/Array/src/ESMCI_Array.C
Original file line number Diff line number Diff line change
Expand Up @@ -4465,7 +4465,7 @@ int Array::serialize(
for (int i=0; i<delayout->getDeCount(); i++)
*ip++ = exclusiveElementCountPDe[i];
} else
ip += 2 + 2*tensorCount + 2*distgrid->getDimCount () +
ip += 3 + 2*tensorCount + 2*distgrid->getDimCount () +
rank + delayout->getDeCount ();

// fix offset
Expand Down

0 comments on commit cbacd57

Please sign in to comment.