Add ssize and remove static_casts
[alexxy/gromacs.git] / src / gromacs / domdec / partition.cpp
index bd00656df2b7468617981be14cf04a62f4913f31..3a1ea5a7dce8a452068d9f47cd02b4038e60be47 100644 (file)
@@ -2112,7 +2112,7 @@ static void setup_dd_communication(gmx_domdec_t *dd,
                     cg0 = cg1 - cd->ind[p-1].nrecv[zone];
                 }
 
-                const int numThreads = static_cast<int>(comm->dth.size());
+                const int numThreads = gmx::ssize(comm->dth);
 #pragma omp parallel for num_threads(numThreads) schedule(static)
                 for (int th = 0; th < numThreads; th++)
                 {