Replace bool with enum class in DomdecOptions
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.cpp
index 1f8d599bc5ce24d3c6af3f7a9ea202bc764cb0f5..e7874c8d0c0f5ce275f171de08ae184beec75ecd 100644 (file)
@@ -1960,14 +1960,8 @@ int Mdrunner::mdrunner()
             /* This call is not included in init_domain_decomposition mainly
              * because fr->cginfo_mb is set later.
              */
-            dd_init_bondeds(fplog,
-                            cr->dd,
-                            mtop,
-                            vsite.get(),
-                            *inputrec,
-                            domdecOptions.checkBondedInteractions ? DDBondedChecking::All
-                                                                  : DDBondedChecking::ExcludeZeroLimit,
-                            fr->cginfo_mb);
+            dd_init_bondeds(
+                    fplog, cr->dd, mtop, vsite.get(), *inputrec, domdecOptions.ddBondedChecking, fr->cginfo_mb);
         }
 
         if (runScheduleWork.simulationWork.useGpuBufferOps)