version 1.12 | version 1.13 |
---|
| |
} | } |
} | } |
| |
| |
void colvar::coordnum::apply_force(colvarvalue const &force) | void colvar::coordnum::apply_force(colvarvalue const &force) |
{ | { |
if (!group1->noforce) | if (!group1->noforce) |
| |
} | } |
| |
| |
| simple_scalar_dist_functions(coordnum) |
| |
| |
| |
// h_bond member functions | // h_bond member functions |
| |
| |
atom_groups[0]->add_atom(donor); | atom_groups[0]->add_atom(donor); |
} | } |
| |
| |
colvar::h_bond::h_bond() | colvar::h_bond::h_bond() |
: cvc() | : cvc() |
{ | { |
| |
} | } |
| |
| |
| simple_scalar_dist_functions(h_bond) |
| |
| |
| |
colvar::selfcoordnum::selfcoordnum(std::string const &conf) | colvar::selfcoordnum::selfcoordnum(std::string const &conf) |
| |
} | } |
| |
| |
| simple_scalar_dist_functions(selfcoordnum) |
| |
| |
// groupcoordnum member functions | // groupcoordnum member functions |
colvar::groupcoordnum::groupcoordnum(std::string const &conf) | colvar::groupcoordnum::groupcoordnum(std::string const &conf) |
: distance(conf), b_anisotropic(false) | : distance(conf), b_anisotropic(false) |
| |
#endif | #endif |
| |
| |
| |
void colvar::groupcoordnum::calc_value() | void colvar::groupcoordnum::calc_value() |
{ | { |
| |
| |
| |
x.real_value = coordnum::switching_function<false>(r0, en, ed, | x.real_value = coordnum::switching_function<false>(r0, en, ed, |
group1_com_atom, group2_com_atom); | group1_com_atom, group2_com_atom); |
| |
} | } |
| |
| |
| |
if (!group2->noforce) | if (!group2->noforce) |
group2->apply_colvar_force(force.real_value); | group2->apply_colvar_force(force.real_value); |
} | } |
| |
| |
| simple_scalar_dist_functions(groupcoordnum) |