Skip to content

Commit 49408b4

Browse files
committed
clean debugging lines
1 parent 8f3cf07 commit 49408b4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/colvarbias_abf.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ int colvarbias_abf::update()
457457
if ( pabf_freq && cvm::step_relative() % pabf_freq == 0 ) {
458458
cvm::real err;
459459
std::vector<int> ix_test = {16,29};
460-
cvm::log("the gradient before integration is :" +cvm::to_str(pmf->gradients->value(ix_test,0)) + cvm::to_str(pmf->gradients->value(ix_test,0)));
461460
int iter = pmf->integrate(integrate_iterations, integrate_tol, err);
462461
if ( iter == integrate_iterations ) {
463462
cvm::log("Warning: PMF integration did not converge to " + cvm::to_str(integrate_tol)

src/colvargrid.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ class colvar_grid_gradient : public colvar_grid<cvm::real>
16631663
}
16641664
std::vector<int>ix_min(nd, 0);
16651665
std::vector<int>ix_max(nd, 0);
1666-
for (int i =0; i < nd; i++) {
1666+
for (size_t i =0; i < nd; i++) {
16671667
// TODO: handle periodic case as well
16681668
ixmin = cv_value[0] - smoothing;
16691669
ixmax = cv_value[0] + smoothing;
@@ -1683,10 +1683,9 @@ class colvar_grid_gradient : public colvar_grid<cvm::real>
16831683
int i = 0;
16841684
for (std::vector<int> ix = ix_min; ix < ix_max; incr(ix)) {
16851685
dist = 0;
1686-
coeff;
16871686
stop = 1;
16881687
std::vector<int>ix_copy = std::vector<int>(ix);
1689-
for (int dim = 0; dim < nd; dim++) {
1688+
for (size_t dim = 0; dim < nd; dim++) {
16901689
if (!index_ok(ix)) {
16911690
if (periodic[dim]) {
16921691
ix_copy[dim] = ix_copy[dim];

0 commit comments

Comments
 (0)