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:
Henry Weller
2016-04-06 12:24:47 +01:00
parent 67c2cbfe4b
commit fea0dc5203

View File

@ -324,7 +324,9 @@ void Foam::UPstream::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),
MPI_BYTE,
recvData.begin(),