We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff7a01a commit f3117b3Copy full SHA for f3117b3
src/colvargrid.h
@@ -1655,7 +1655,7 @@ class colvar_grid_gradient : public colvar_grid<cvm::real>
1655
kernel_params = smoothing;
1656
inv_squared_smooth = 1/ (std::max(smoothing*smoothing, 1e-5));
1657
cutoff = cutoff_factor * smoothing; // take like floor()
1658
- for (int i = 0; i < nd; i++) {
+ for (size_t i = 0; i < nd; i++) {
1659
cutoff = std::min(cutoff, nx[i]/2);
1660
}
1661
kernel_params_computed = true;
0 commit comments