ENH: avoid clearStorage for persistent PstreamBuffers

- added persistent buffer for zoneDistribute
- additional handling for clearing buffers
This commit is contained in:
Mark Olesen
2023-02-13 12:01:51 +01:00
parent a16f09b10c
commit 83740ad408
9 changed files with 131 additions and 74 deletions

View File

@ -226,7 +226,9 @@ reducedKoopmanOperator()
// Tests revealed that the distribution of "Q" does not affect
// the final outcome of TSQR decomposition up to sign
// Don't clear storage on persistent buffer
PstreamBuffers pBufs(Pstream::commsTypes::nonBlocking);
pBufs.allowClearRecv(false);
const label myProcNo = Pstream::myProcNo();
const label procNoInSubset = myProcNo % nAgglomerationProcs_;