Commit c6f59ed1 authored by Matthieu Dorier's avatar Matthieu Dorier

corrected a bug when trying to finalize MPI twice

parent f37b29b9
......@@ -21,7 +21,9 @@ int main(int argc, char** argv) {
// modelnet_mpi_replay(comm,&argc,&argv);
modelnet_mpi_replay(MPI_COMM_WORLD,&argc,&argv);
MPI_Finalize();
int flag;
MPI_Finalized(&flag);
if(!flag) MPI_Finalize();
return 0;
}
......
Markdown is supported
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