Require explicit MPI_COMM for gmx_bcast and gmx_barrier
authorPascal Merz <pascal.merz@me.com>
Tue, 7 Apr 2020 19:10:44 +0000 (19:10 +0000)
committerM. Eric Irrgang <mei2n@virginia.edu>
Tue, 7 Apr 2020 19:10:44 +0000 (19:10 +0000)
commit59e622e14217da93f199885a5843f2cf9248fb63
tree15a77230cfb6ad0867f101e8c76b3930cf2f0b3d
parent5d3cbc770078494454c061b0657c8aab473d787a
Require explicit MPI_COMM for gmx_bcast and gmx_barrier

This changes gmx_bcast and gmx_barrier to take the MPI communicator
explicitly instead of taking a pointer to t_commrec and using
mpi_comm_mygroup. This also allows to remove gmx_bcast_sim and leave
the responsibility of passing the right communicator to the caller.

This is a first step in breaking up t_commrec. These functions
are the subset of low-level networking functions which are used
before domain decomposition (and hence PP/PME ranks) is set up.

Refs #2395
27 files changed:
src/gromacs/applied_forces/densityfitting.cpp
src/gromacs/awh/awh.cpp
src/gromacs/awh/biasstate.cpp
src/gromacs/domdec/box.cpp
src/gromacs/domdec/domdec.cpp
src/gromacs/domdec/domdec_setup.cpp
src/gromacs/essentialdynamics/edsam.cpp
src/gromacs/fileio/checkpoint.cpp
src/gromacs/gmxlib/network.cpp
src/gromacs/gmxlib/network.h
src/gromacs/imd/imd.cpp
src/gromacs/listed_forces/disre.cpp
src/gromacs/mdlib/boxdeformation.cpp
src/gromacs/mdlib/broadcaststructs.cpp
src/gromacs/mdlib/broadcaststructs.h
src/gromacs/mdlib/md_support.cpp
src/gromacs/mdlib/simulationsignal.cpp
src/gromacs/mdlib/update.cpp
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/mimic.cpp
src/gromacs/mdrun/runner.cpp
src/gromacs/modularsimulator/modularsimulator.cpp
src/gromacs/pulling/pull.cpp
src/gromacs/pulling/pull_rotation.cpp
src/gromacs/restraint/restraintmdmodule.cpp
src/gromacs/swap/swapcoords.cpp
src/gromacs/tools/pme_error.cpp