Skip to content
Snippets Groups Projects
Commit 149c1b66 authored by mattijs's avatar mattijs
Browse files

COMP: mpi: missing cast in debug message

parent a47fc3de
Branches
Tags
No related merge requests found
......@@ -194,7 +194,8 @@ void Foam::iallReduce
if (UPstream::warnComm != -1 && communicator != UPstream::warnComm)
{
Pout<< "** non-blocking reducing:" << UList<Type>(recvBuf, MPICount)
Pout<< "** non-blocking reducing:"
<< UList<Type>(static_cast<Type*>(recvBuf), MPICount)
<< " with comm:" << communicator
<< " warnComm:" << UPstream::warnComm << endl;
error::printStack(Pout);
......@@ -219,7 +220,8 @@ void Foam::iallReduce
)
{
FatalErrorInFunction
<< "MPI_Iallreduce failed for "<< UList<Type>(recvBuf, MPICount)
<< "MPI_Iallreduce failed for "
<< UList<Type>(static_cast<Type*>(recvBuf), MPICount)
<< Foam::abort(FatalError);
}
......@@ -255,7 +257,8 @@ void Foam::iallReduce
)
{
FatalErrorInFunction
<< "MPI_Allreduce failed for " << UList<Type>(recvBuf, MPICount)
<< "MPI_Allreduce failed for "
<< UList<Type>(static_cast<Type*>(recvBuf), MPICount)
<< Foam::abort(FatalError);
}
requestID = -1;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment