Skip to content

Commit 2d7f4d1

Browse files
committed
delete unused helper function
1 parent 19ef773 commit 2d7f4d1

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/colvargrid.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,41 +1601,7 @@ class colvar_grid_gradient : public colvar_grid<cvm::real>
16011601
weights->increase(ix,fact);
16021602
}
16031603
}
1604-
/// \brief Checks if a vector is between min and max coordinates
1605-
bool index_ok_min_max(std::vector<int> const &ix, std::vector<int> const ix_min, std::vector<int> const ix_max) const
1606-
{
1607-
// TODO : add size check
1608-
for (size_t i = 0; i < nd; i++) {
1609-
if ( (ix[i] < ix_min[i]) || (ix[i] > ix_max[i]))
1610-
return false;
1611-
}
1612-
return true;
1613-
}
1614-
/// \brief Increase weight inside a rectangle block defined by ix_min and ix_max
16151604

1616-
inline void incr_min_max(std::vector<int> &ix, std::vector<int> const ix_min, std::vector<int> const ix_max) const
1617-
{
1618-
for (int i = ix.size()-1; i >= 0; i--) {
1619-
1620-
ix[i]++;
1621-
1622-
if (ix[i] > ix_max[i]) {
1623-
1624-
if (i > 0) {
1625-
ix[i] = ix_min[i];
1626-
continue;
1627-
} else {
1628-
// this is the last iteration, a non-valid index is being
1629-
// set for the outer index, which will be caught by
1630-
// index_ok()
1631-
// ix[0] = ix_min[0];
1632-
return;
1633-
}
1634-
} else {
1635-
return;
1636-
}
1637-
}
1638-
}
16391605
/// \brief Accumulate the gradient based on the force (i.e. sums the
16401606
/// opposite of the force)
16411607
/// cv_value corresponds to the grid coordinates i.e. (3.5,6.2) inside the grid of dimension nx

0 commit comments

Comments
 (0)