@@ -232,11 +232,13 @@ void inline colvar::coordnum::main_loop()
232232 compute_pair_coordnum<flags | ef_use_internal_pbc>(inv_r0_vec, inv_r0sq_vec, en, ed,
233233 x1, y1, z1, x2, y2, z2,
234234 gx1, gy1, gz1, gx2, gy2, gz2,
235- tolerance, tolerance_l2_max) :
235+ tolerance, tolerance_l2_max,
236+ cvmodule) :
236237 compute_pair_coordnum<flags>(inv_r0_vec, inv_r0sq_vec, en, ed,
237238 x1, y1, z1, x2, y2, z2,
238239 gx1, gy1, gz1, gx2, gy2, gz2,
239- tolerance, tolerance_l2_max) ) :
240+ tolerance, tolerance_l2_max,
241+ cvmodule) ) :
240242 0.0 ;
241243
242244 if ((flags & ef_use_pairlist) && (flags & ef_rebuild_pairlist)) {
@@ -444,7 +446,8 @@ void colvar::h_bond::calc_value()
444446 atom_groups[0 ]->grad_x (1 ),
445447 atom_groups[0 ]->grad_y (1 ),
446448 atom_groups[0 ]->grad_z (1 ),
447- 0.0 , 1.0e20 );
449+ 0.0 , 1.0e20 ,
450+ cvmodule);
448451 // Skip the gradient
449452}
450453
@@ -475,7 +478,8 @@ void colvar::h_bond::calc_gradients()
475478 atom_groups[0 ]->grad_x (1 ),
476479 atom_groups[0 ]->grad_y (1 ),
477480 atom_groups[0 ]->grad_z (1 ),
478- 0.0 , 1.0e20 );
481+ 0.0 , 1.0e20 ,
482+ cvmodule);
479483}
480484
481485
@@ -517,11 +521,13 @@ template <int flags> inline void colvar::selfcoordnum::selfcoordnum_sequential_l
517521 compute_pair_coordnum<flags | ef_use_internal_pbc>(inv_r0_vec, inv_r0sq_vec, en, ed,
518522 x1, y1, z1, x2, y2, z2,
519523 gx1, gy1, gz1, gx2, gy2, gz2,
520- tolerance, tolerance_l2_max) :
524+ tolerance, tolerance_l2_max,
525+ cvmodule) :
521526 compute_pair_coordnum<flags>(inv_r0_vec, inv_r0sq_vec, en, ed,
522527 x1, y1, z1, x2, y2, z2,
523528 gx1, gy1, gz1, gx2, gy2, gz2,
524- tolerance, tolerance_l2_max) ) :
529+ tolerance, tolerance_l2_max,
530+ cvmodule) ) :
525531 0.0 ;
526532
527533 if ((flags & ef_use_pairlist) && (flags & ef_rebuild_pairlist)) {
0 commit comments