Skip to content

Commit

Permalink
fixed MPI communication bug introduced in rev1791 affecting solvent-o…
Browse files Browse the repository at this point in the history
…nly simulations --MariaP
  • Loading branch information
oostenbrink committed Jul 1, 2016
1 parent 2b2e3fc commit 07a3656
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions gromosXX/src/algorithm/constraints/shake.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ int algorithm::Shake::apply(topology::Topology & topo,
topo, conf, sim,
m_max_iterations, error);

#ifdef XXMPI
if (sim.mpi && sim.param().system.nsm &&
sim.param().constraint.solvent.algorithm == simulation::constr_shake)
MPI::COMM_WORLD.Bcast(&error, 1, MPI::INT, 0);
#endif
if (error) {
std::cout << "SHAKE: exiting with error condition: E_SHAKE_FAILURE_SOLUTE "
<< "at step " << sim.steps() << std::endl;
Expand All @@ -104,13 +99,6 @@ int algorithm::Shake::apply(topology::Topology & topo,
return E_SHAKE_FAILURE_SOLUTE;
}
}
#ifdef XXMPI
//receive solute shake error
if (sim.mpi && m_rank) {
MPI::COMM_WORLD.Bcast(&error, 1, MPI::INT, 0);
if (error) return E_SHAKE_FAILURE_SOLUTE;
}
#endif

if (!error && sim.param().system.nsm &&
sim.param().constraint.solvent.algorithm == simulation::constr_shake) {
Expand Down

0 comments on commit 07a3656

Please sign in to comment.