Fix typo
This commit is contained in:
@ -210,7 +210,7 @@ void colvar::alpha_angles::collect_gradients(std::vector<int> const &atom_ids, s
|
||||
1.0/(1.0 - (t*t*t*t)) *
|
||||
( (-2.0 * t) + (-1.0*f)*(-4.0 * (t*t*t)) );
|
||||
|
||||
// Coeficient of this CVC's gradient in the colvar gradient, times coefficient of this
|
||||
// Coefficient of this CVC's gradient in the colvar gradient, times coefficient of this
|
||||
// angle's gradient in the CVC's gradient
|
||||
cvm::real const coeff = cvc_coeff * theta_norm * dfdt * (1.0/theta_tol);
|
||||
|
||||
@ -230,7 +230,7 @@ void colvar::alpha_angles::collect_gradients(std::vector<int> const &atom_ids, s
|
||||
cvm::real const hb_norm = hb_coeff / cvm::real(hb.size());
|
||||
|
||||
for (size_t i = 0; i < hb.size(); i++) {
|
||||
// Coeficient of this CVC's gradient in the colvar gradient, times coefficient of this
|
||||
// Coefficient of this CVC's gradient in the colvar gradient, times coefficient of this
|
||||
// hbond's gradient in the CVC's gradient
|
||||
cvm::real const coeff = cvc_coeff * 0.5 * hb_norm;
|
||||
|
||||
@ -473,7 +473,7 @@ void colvar::dihedPC::collect_gradients(std::vector<int> const &atom_ids, std::v
|
||||
cvm::real const t = (PI / 180.) * theta[i]->value().real_value;
|
||||
cvm::real const dcosdt = - (PI / 180.) * cvm::sin(t);
|
||||
cvm::real const dsindt = (PI / 180.) * cvm::cos(t);
|
||||
// Coeficient of this dihedPC's gradient in the colvar gradient, times coefficient of this
|
||||
// Coefficient of this dihedPC's gradient in the colvar gradient, times coefficient of this
|
||||
// dihedral's gradient in the dihedPC's gradient
|
||||
cvm::real const coeff = cvc_coeff * (coeffs[2*i] * dcosdt + coeffs[2*i+1] * dsindt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user