Skip to content

Commit

Permalink
Fix #21: Last value in pullx- and pullf-file is zero
Browse files Browse the repository at this point in the history
Caused by an indexing error in apply_external_pull_coord_force
  • Loading branch information
BerndDoser committed Feb 24, 2021
1 parent df81713 commit efef880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gromacs/ramd/ramd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ void RAMD::calculateForces(const ForceProviderInput& forceProviderInput,
{
for (int i = 0; i < 3; ++i)
{
get_pull_coord_value(pull, g * 2 + i, &pbc);
apply_external_pull_coord_force(pull, g * 2 + i, direction[g][i] * params.group[g].force,
get_pull_coord_value(pull, g * 3 + i, &pbc);
apply_external_pull_coord_force(pull, g * 3 + i, direction[g][i] * params.group[g].force,
&forceProviderInput.mdatoms_, &forceProviderOutput->forceWithVirial_);
}
}
Expand Down

0 comments on commit efef880

Please sign in to comment.