Skip to content
Snippets Groups Projects
Commit 610d2ee9 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Remove conditionals for MPI version 2, it is always true

It was removed 9 years ago.
parent 8d9ff97f
No related branches found
No related tags found
1 merge request!569Fix some issues found by Clazy, Cppcheck, and myself
......@@ -659,15 +659,13 @@ namespace Dune {
if (freecomm==true)
if(comm!=MPI_COMM_NULL)
{
#ifdef MPI_2
// If it is possible to query whether MPI_Finalize
// was called, only free the communicator before
// calling MPI_Finalize.
int wasFinalized = 0;
MPI_Finalized( &wasFinalized );
if(!wasFinalized)
#endif
MPI_Comm_free(&comm);
MPI_Comm_free(&comm);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment