Use MpiContextManager to provide MPI communicator.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Mon, 28 Sep 2020 12:35:43 +0000 (15:35 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 29 Sep 2020 06:09:40 +0000 (06:09 +0000)
commit88ef2fd69f2deed0a99e83ee097c9f64995f32ad
tree241951035c3f6f354d8f3cef0e22a73a81ed8646
parent09c3a1922300831e9b5f8894396ecec59fd67661
Use MpiContextManager to provide MPI communicator.

* Give MpiContextManager a MPI_Comm and make it movable so that it can
  be provided while creating the ContextImpl.
* In gmxapi::ContextImpl::launch(), use an MpiContextManager instance as
  the source for the SimulationContext communicator.

Refs #3644
api/gmxapi/cpp/context.cpp
api/gmxapi/cpp/context_impl.h