Skip to content

Commit

Permalink
Merge branch 'mpi_c_bindings' into sharedmem_3d_y_blitz_storage_order…
Browse files Browse the repository at this point in the history
…_mpi_by_two_threads
  • Loading branch information
pdziekan committed Apr 15, 2021
2 parents 8d86693 + 29796e7 commit 3964132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmpdata++/concurr/detail/distmem.hpp
Expand Up @@ -125,7 +125,8 @@ namespace libmpdataxx
if(!mpi_initialized)
{
mpi_initialized_before = false;
MPI_Init_thread(nullptr, nullptr, MPI_THREAD_MULTIPLE, nullptr);
int th_lvl_provided;
MPI_Init_thread(nullptr, nullptr, MPI_THREAD_MULTIPLE, &th_lvl_provided);
}
if (boost::mpi::environment::thread_level() != boost::mpi::threading::multiple)
{
Expand Down

0 comments on commit 3964132

Please sign in to comment.