Merge branch 'release-2019' into master
[alexxy/gromacs.git] / src / gromacs / taskassignment / resourcedivision.cpp
index 09d02464a6f4f45abf7ee9fe5ad1671e4b80fe0e..05e3912797ddb62d9bee0abfc3f9aa66e919faae 100644 (file)
@@ -422,7 +422,7 @@ int get_nthreads_mpi(const gmx_hw_info_t    *hwinfo,
 
     /* nonbondedOnGpu might be false e.g. because this simulation uses
      * the group scheme, or is a rerun with energy groups. */
-    ngpu = (nonbondedOnGpu ? static_cast<int>(gpuIdsToUse.size()) : 0);
+    ngpu = (nonbondedOnGpu ? gmx::ssize(gpuIdsToUse) : 0);
 
     if (inputrec->cutoff_scheme == ecutsGROUP)
     {