Make init_dires independent of t_commrec
authorPascal Merz <pascal.merz@me.com>
Wed, 22 Apr 2020 17:21:14 +0000 (17:21 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 22 Apr 2020 17:21:14 +0000 (17:21 +0000)
commit0a48bcd07b6991198c847ac2edf992bd31a267ce
tree37d1831d49397c6d215c10339b89b328f1339315
parent85d826e59a5160991aadfed11e378c36ad7300a6
Make init_dires independent of t_commrec

init_disres was requesting a full pointer to the commrec,
but only uses a single communicator and checks for master rank
and whether the run is parallel. This information is now passed
in explicitly, simplifying the planned splitting of t_commrec.

Note that passing a nullptr for commrec was (mis)used by
gmx_disre only - effectively signalling that init_disres was
called from an analysis tool and not from mdrun. This has
been made explicit.

Refs #2395
src/gromacs/gmxana/gmx_disre.cpp
src/gromacs/listed_forces/disre.cpp
src/gromacs/listed_forces/disre.h
src/gromacs/mdrun/runner.cpp
src/gromacs/mdtypes/commrec.h