Skip to content

Commit 3964132

Browse files
committed
Merge branch 'mpi_c_bindings' into sharedmem_3d_y_blitz_storage_order_mpi_by_two_threads
2 parents 8d86693 + 29796e7 commit 3964132

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libmpdata++/concurr/detail/distmem.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ namespace libmpdataxx
125125
if(!mpi_initialized)
126126
{
127127
mpi_initialized_before = false;
128-
MPI_Init_thread(nullptr, nullptr, MPI_THREAD_MULTIPLE, nullptr);
128+
int th_lvl_provided;
129+
MPI_Init_thread(nullptr, nullptr, MPI_THREAD_MULTIPLE, &th_lvl_provided);
129130
}
130131
if (boost::mpi::environment::thread_level() != boost::mpi::threading::multiple)
131132
{

0 commit comments

Comments
 (0)