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:
parent
255547dd33
commit
e290c25361
1 changed files with 3 additions and 1 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue