Skip to content

Commit

Permalink
Use mardyn_exit to terminate program cleanly
Browse files Browse the repository at this point in the history
Co-authored-by: FG-TUM <[email protected]>
  • Loading branch information
cniethammer and FG-TUM authored May 24, 2024
1 parent 0deb3a4 commit 4c32dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarDyn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int main(int argc, char** argv) {
MPI_Init_thread(&argc, &argv, thread_support_level_requested, &thread_support_level_provided);
if (thread_support_level_provided < thread_support_level_requested) {
std::cerr << "Error: MPI implementation does not support the requested thread support level." << std::endl;
std::exit(EXIT_FAILURE);
mardyn_exit(EXIT_FAILURE);
}
#else
MPI_Init(&argc, &argv);
Expand Down

0 comments on commit 4c32dbe

Please sign in to comment.