Skip to content

Commit f3117b3

Browse files
committed
precompute kernel parameters
1 parent ff7a01a commit f3117b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/colvargrid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ class colvar_grid_gradient : public colvar_grid<cvm::real>
16551655
kernel_params = smoothing;
16561656
inv_squared_smooth = 1/ (std::max(smoothing*smoothing, 1e-5));
16571657
cutoff = cutoff_factor * smoothing; // take like floor()
1658-
for (int i = 0; i < nd; i++) {
1658+
for (size_t i = 0; i < nd; i++) {
16591659
cutoff = std::min(cutoff, nx[i]/2);
16601660
}
16611661
kernel_params_computed = true;

0 commit comments

Comments
 (0)