Skip to content

Commit

Permalink
Finalizing MPI when not having correct number of processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Barkman committed Jun 29, 2017
1 parent d78446f commit 6f36b92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ int main(int argc, char * argv[]){
if(rank == 0){
std::cerr << "Error: Number of processes must be a power of 2!" << std::endl;
}
MPI_Finalize();
return -1;
}

Expand Down

0 comments on commit 6f36b92

Please sign in to comment.