aboutsummaryrefslogtreecommitdiff
path: root/Source/main.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2022-01-27 15:35:22 -0800
committerGravatar GitHub <noreply@github.com> 2022-01-27 15:35:22 -0800
commit72c9c98548d4a6b78810a88746612ad135300038 (patch)
tree7de6aa9229fe7da8177deb2a42392eacb3be4b18 /Source/main.cpp
parentd839c70c7342c3b336ddc535a1b4ff909d30a23b (diff)
downloadWarpX-72c9c98548d4a6b78810a88746612ad135300038.tar.gz
WarpX-72c9c98548d4a6b78810a88746612ad135300038.tar.zst
WarpX-72c9c98548d4a6b78810a88746612ad135300038.zip
Fix: Move MPI Thread Level Check (#2786)
* Fix: Move MPI Thread Level Check Move the MPI thread level check (requested vs. provided) into `InitData()`. This is needed, since we will access the warning logger, which itself needs to be accessed via a WarpX instance. This is also cleaner than just moving this behind the constructor in `main.cpp`, as we have less functions to call around the `WarpX` object usage. * Fix MPI=OFF
Diffstat (limited to 'Source/main.cpp')
-rw-r--r--Source/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/main.cpp b/Source/main.cpp
index d6939a6f1..5587d4f93 100644
--- a/Source/main.cpp
+++ b/Source/main.cpp
@@ -36,12 +36,10 @@ int main(int argc, char* argv[])
{
using namespace amrex;
- auto mpi_thread_levels = utils::warpx_mpi_init(argc, argv);
+ utils::warpx_mpi_init(argc, argv);
warpx_amrex_init(argc, argv);
- utils::warpx_check_mpi_thread_level(mpi_thread_levels);
-
#if defined(AMREX_USE_HIP) && defined(WARPX_USE_PSATD)
rocfft_setup();
#endif