Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/colvarbias_abf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@ int colvarbias_abf::init(std::string const &conf)
// If any colvar does not have current-step total force, then
// we can't do step 0 data
provide(f_cvb_step_zero_data, false);
// And we cannot do MTS either
if (time_step_factor > 1) {
// This ABF implementation assumes that the total force available at one time step (where ABF runs)
// is that from the previous timestep where ABF ran
// So we cannot do MTS with a larger factor than the global proxy MTS factor
// (That would require the colvar to update its total force at a time step where it doesn't run
// or to remember its value from the timestep when the total force is collected)
if (time_step_factor != cvmodule->proxy->time_step_factor()) {
return cvmodule->error("Error: ABF cannot use timeStepFactor > 1 because " +
colvars[i]->description +
" does not provide total force estimates for the current timestep.\n");
Expand Down
Loading