colvars icon indicating copy to clipboard operation
colvars copied to clipboard

Optimize the fit gradients

Open HanatoK opened this issue 4 months ago • 4 comments

  • Save the unrotated positions. This can avoid rotating the positions again in calc_fit_forces_impl;
  • Determine dl, dq or ds by compile-time template options;
  • Only call calc_fit_gradients when atom groups have explicit gradients;
  • Simplify and inline cvm::quaternion::position_derivative_inner.

This PR should be only marked as ready after #713 is merged.

HanatoK avatar Oct 15 '24 00:10 HanatoK