I'd like to introduce support for communicator being supplied by user,
stored within mesh and used by other objects based on the mesh. There
are few applications of this. Mikael has one being rather non-trivial, I
think.

To achieve this it will require some changes in the interface, roughly
sketched:

 - MPICommunicator::MPICommunicator()
 + MPICommunicator::MPICommunicator(const MPI_Comm& comm=MPI_COMM_WORLD)

 + MPICommunicator::MPICommunicator(const MPICommunicator& comm)

   merging classes MPI, MPINonbocking into MPICommunicator

 + Mesh::Mesh(..., shared_ptr<MPICommunicator> comm=MPICommunicator())

 + UnitIntervalMesh(..., comm), ...

Importat question is which type of comm to reaveal to user in C++
DOLFIN, pyDOLFIN to make it as much as possibly compatible with
other libraries, like boost, PETSc, mpi4py, petsc4py.

Jan
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to