We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4630fd4 commit f363f25Copy full SHA for f363f25
src/colvar.cpp
@@ -1462,7 +1462,7 @@ int colvar::collect_cvc_data()
1462
1463
int error_code = COLVARS_OK;
1464
1465
- if ((cvm::step_relative() > 0) && (!is_enabled(f_cv_total_force_current_step))){
+ if (cvm::main()->proxy->total_forces_valid() && (!is_enabled(f_cv_total_force_current_step))) {
1466
// Total force depends on Jacobian derivative from previous timestep
1467
// collect_cvc_total_forces() uses the previous value of jd
1468
error_code |= collect_cvc_total_forces();
0 commit comments