mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
src/Pstream/mpi/UPstream.C: Cast-away const-ness for backard-compatibility with OpenMPI versions < 1.7.4
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2044
This commit is contained in:
@ -324,7 +324,9 @@ void Foam::UPstream::allToAll
|
|||||||
(
|
(
|
||||||
MPI_Alltoall
|
MPI_Alltoall
|
||||||
(
|
(
|
||||||
sendData.begin(),
|
// NOTE: const_cast is a temporary hack for
|
||||||
|
// backward-compatibility with versions of OpenMPI < 1.7.4
|
||||||
|
const_cast<int*>(sendData.begin()),
|
||||||
sizeof(label),
|
sizeof(label),
|
||||||
MPI_BYTE,
|
MPI_BYTE,
|
||||||
recvData.begin(),
|
recvData.begin(),
|
||||||
|
|||||||
Reference in New Issue
Block a user