Skip to content

Commit 07b3f71

Browse files
committed
fix: Silence warning regarding shadowing of class member
1 parent b04a4af commit 07b3f71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/colvarcomp_coordnums.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class colvar::coordnum : public colvar::cvc {
5656
cvm::real &g1x, cvm::real &g1y, cvm::real &g1z,
5757
cvm::real &g2x, cvm::real &g2y, cvm::real &g2z,
5858
cvm::real pairlist_tol, cvm::real pairlist_tol_l2_max,
59-
cvm::system_boundary_conditions const &boundary_conditions);
59+
cvm::system_boundary_conditions const &bc);
6060

6161
/// Workhorse function
6262
template <bool use_group1_com, bool use_group2_com, int flags> int compute_coordnum();
@@ -247,12 +247,12 @@ inline cvm::real colvar::coordnum::compute_pair_coordnum(cvm::rvector const &inv
247247
cvm::real& g2z,
248248
cvm::real pairlist_tol,
249249
cvm::real pairlist_tol_l2_max,
250-
cvm::system_boundary_conditions const &boundary_conditions)
250+
cvm::system_boundary_conditions const &bc)
251251
{
252252
const cvm::atom_pos pos1{a1x, a1y, a1z};
253253
const cvm::atom_pos pos2{a2x, a2y, a2z};
254254
cvm::rvector const diff = (flags & ef_use_internal_pbc)
255-
? boundary_conditions.position_distance(pos1, pos2)
255+
? bc.position_distance(pos1, pos2)
256256
: cvm::main()->proxy->position_distance(pos1, pos2);
257257

258258
cvm::rvector const scal_diff(diff.x * inv_r0_vec.x,

0 commit comments

Comments
 (0)