Fix PmeLoadBalanceHelper initialization (modular simulator)
commit326b82a5a1eceedecf9ea8c330d9283dc825c05a
authorPascal Merz <pascal.merz@me.com>
Mon, 21 Oct 2019 21:25:58 +0000 (21 15:25 -0600)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 22 Oct 2019 07:35:23 +0000 (22 09:35 +0200)
treeaf37661d67d7625b5dfe296ac9e2fa9057b9e7de
parent61cb2210ad8afbc6d6db8c2a151166cd45b3a209
Fix PmeLoadBalanceHelper initialization (modular simulator)

PmeLoadBalanceHelper could be initialized before the state had a
valid box. Fixed the initialization order and added comments and
assert to avoid this error to creep back in.

Change-Id: I7b59011d6e1d532543a1d1463eceacfcdc148557
src/gromacs/modularsimulator/modularsimulator.cpp
src/gromacs/modularsimulator/pmeloadbalancehelper.cpp