This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Default MPI Communicator in C++

0 votes

Dearl all,

I've read many questions about this issue: what it the preferred way of obtaining MPI_COMM_WORLD in C++?

In the answer I read that there should be a mpi_comm_world() in dolfin::MPI, however it seems there is no such function.

What am I missing?

Thanks!

asked Jul 17, 2015 by senseiwa FEniCS User (2,620 points)

Apart from using MPI_COMM_WORLD the old fashioned way, obviously.

1 Answer

0 votes
 
Best answer

That function is for convenience in the python layer... i think it is fine to use MPI_COMM_WORLD in c++

answered Jul 17, 2015 by chris_richardson FEniCS Expert (31,740 points)
selected Jul 17, 2015 by senseiwa
...