aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/MPIInitHelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Utils/MPIInitHelpers.cpp')
-rw-r--r--Source/Utils/MPIInitHelpers.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Utils/MPIInitHelpers.cpp b/Source/Utils/MPIInitHelpers.cpp
index 374165296..47411375a 100644
--- a/Source/Utils/MPIInitHelpers.cpp
+++ b/Source/Utils/MPIInitHelpers.cpp
@@ -51,6 +51,15 @@ namespace utils
return std::make_pair(thread_required, thread_provided);
}
+
+ void
+ warpx_mpi_finalize ()
+ {
+#ifdef AMREX_USE_MPI
+ MPI_Finalize();
+#endif
+ }
+
void
warpx_check_mpi_thread_level ()
{