diff options
author | 2022-01-27 15:35:22 -0800 | |
---|---|---|
committer | 2022-01-27 15:35:22 -0800 | |
commit | 72c9c98548d4a6b78810a88746612ad135300038 (patch) | |
tree | 7de6aa9229fe7da8177deb2a42392eacb3be4b18 /Source/Initialization/WarpXInitData.cpp | |
parent | d839c70c7342c3b336ddc535a1b4ff909d30a23b (diff) | |
download | WarpX-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/Initialization/WarpXInitData.cpp')
-rw-r--r-- | Source/Initialization/WarpXInitData.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 3d7325e62..73193e069 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -22,6 +22,7 @@ #include "Filter/NCIGodfreyFilter.H" #include "Particles/MultiParticleContainer.H" #include "Parallelization/WarpXCommUtil.H" +#include "Utils/MPIInitHelpers.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" @@ -112,6 +113,8 @@ void WarpX::InitData () { WARPX_PROFILE("WarpX::InitData()"); + utils::warpx_check_mpi_thread_level(); + Print() << "WarpX (" << WarpX::Version() << ")\n"; #ifdef WARPX_QED Print() << "PICSAR (" << WarpX::PicsarVersion() << ")\n"; |