STYLE: use ListOps::appendEqOp instead of local version

BUG: bad buffer size in globalMeshData::sharedPoints()

- introduced by vector::zero -> Zero replacement (commit 683cfb9d97)
This commit is contained in:
Mark Olesen
2020-02-05 09:56:14 +01:00
parent 44e3860888
commit e693f21d69
4 changed files with 9 additions and 41 deletions

View File

@ -1940,7 +1940,7 @@ Foam::pointField Foam::globalMeshData::sharedPoints() const
(
Pstream::commsTypes::blocking,
slave,
sharedPoints.size()*sizeof(Zero)
sharedPoints.size()*sizeof(Foam::vector) // byteSize()
);
toSlave << sharedPoints;
}