mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
remove error logging in std::cerr
This commit is contained in:
parent
ccd014cc1a
commit
2eefedf661
@ -236,15 +236,13 @@ public:
|
||||
MPI_Waitany(m_messageInformation.size(), recvRequests.data(), &finished, &status);
|
||||
|
||||
if(status.MPI_ERROR!=MPI_SUCCESS) {
|
||||
std::cerr<< rank << ": MPI_Error occurred while receiving message from "<< processMap[finished] << std::endl;
|
||||
OPM_THROW(std::runtime_error, "MPI_Error while receiving message");
|
||||
OPM_THROW(std::runtime_error, fmt::format("MPI_Error occurred while rank {} received a message from rank {}", rank, processMap[finished]));
|
||||
}
|
||||
}
|
||||
MPI_Status recvStatus;
|
||||
for(size_t i = 0; i < m_messageInformation.size(); i++) {
|
||||
if(MPI_SUCCESS!=MPI_Wait(&sendRequests[i], &recvStatus)) {
|
||||
std::cerr << rank << ": MPI_Error occurred while sending message to " << processMap[finished] << std::endl;
|
||||
OPM_THROW(std::runtime_error, "MPI_Error while sending message");
|
||||
OPM_THROW(std::runtime_error, fmt::format("MPI_Error occurred while rank {} sent a message from rank {}", rank, processMap[finished]));
|
||||
}
|
||||
}
|
||||
// ...End of MPI stuff
|
||||
|
Loading…
Reference in New Issue
Block a user