Use gmx::Range in Nbnxm gridding functions
[alexxy/gromacs.git] / src / gromacs / nbnxm / benchmark / bench_setup.cpp
index 941772cae0f820a13b93f7aca6f3cff946e3e4f1..bae840cb144bc7f0408febf46ba0a738c50f9ca8 100644 (file)
@@ -230,7 +230,7 @@ setupNbnxmForBenchInstance(const KernelBenchOptions   &options,
 
     nbnxn_put_on_grid(nbv.get(),
                       system.box, 0, lowerCorner, upperCorner,
-                      nullptr, 0, system.coordinates.size(), atomDensity,
+                      nullptr, { 0, int(system.coordinates.size()) }, atomDensity,
                       atomInfo, system.coordinates,
                       0, nullptr);