diff options
author | 2021-04-05 12:55:56 -0700 | |
---|---|---|
committer | 2021-04-05 12:55:56 -0700 | |
commit | 2b10be053ae49773118a8f52107ea65da445f5eb (patch) | |
tree | 7d9c5e45f2362437062f92c7a9367ca00701ad63 /Source/Utils/MPIInitHelpers.cpp | |
parent | cd7d920edbf2b6a578e868806f77e794910cf229 (diff) | |
download | WarpX-2b10be053ae49773118a8f52107ea65da445f5eb.tar.gz WarpX-2b10be053ae49773118a8f52107ea65da445f5eb.tar.zst WarpX-2b10be053ae49773118a8f52107ea65da445f5eb.zip |
Fix No-MPI Build Warning (#1870)
Fix unused variable warnings in no-MPI builds.
Diffstat (limited to 'Source/Utils/MPIInitHelpers.cpp')
-rw-r--r-- | Source/Utils/MPIInitHelpers.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Utils/MPIInitHelpers.cpp b/Source/Utils/MPIInitHelpers.cpp index ccf28134c..e46127ee2 100644 --- a/Source/Utils/MPIInitHelpers.cpp +++ b/Source/Utils/MPIInitHelpers.cpp @@ -10,7 +10,6 @@ #include <AMReX_ParallelDescriptor.H> #include <AMReX_Print.H> -#include <string> #include <utility> @@ -30,6 +29,8 @@ namespace utils thread_required = MPI_THREAD_MULTIPLE; # endif MPI_Init_thread(&argc, &argv, thread_required, &thread_provided); +#else + amrex::ignore_unused(argc, argv); #endif return std::make_pair(thread_required, thread_provided); } @@ -52,6 +53,8 @@ namespace utils << mtn(thread_provided) << ") is stricter than requested " << mtn(thread_required) << "). This might reduce multi-node " << "communication performance."; +#else + amrex::ignore_unused(mpi_thread_levels); #endif } |