BUG: incorrect chunk handling in Pstream::exchange (fixes #2375)

- used Pstream::maxCommsSize (bytes) for the lower limit when sending.
  This would have send more data on each iteration than expected based
  on maxCommsSize and finish with a number of useless iterations.

  Was generally not a serious bug since maxCommsSize (if used) was
  likely still far away from the MPI limits and exchange() is primarily
  harnessed by PstreamBuffers, which is sending character data
  (ie, number of elements and number of bytes is identical).
This commit is contained in:
Mark Olesen
2022-03-03 13:46:14 +01:00
committed by Andrew Heather
parent 4540b064ee
commit 341d9c402d
4 changed files with 443 additions and 43 deletions

View File

@ -0,0 +1,3 @@
Test-parallel-chunks.C
EXE = $(FOAM_USER_APPBIN)/Test-parallel-chunks

View File

@ -0,0 +1,2 @@
/* EXE_INC = */
/* EXE_LIBS = */