Eliminate the legacyFlags manipulation in do_force()
authorSzilárd Páll <pall.szilard@gmail.com>
Thu, 23 Jan 2020 17:04:24 +0000 (18:04 +0100)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 31 Jan 2020 18:04:42 +0000 (19:04 +0100)
The override is redundant as it is implemented in the stepWorkload
initialization.

Change-Id: Idde50848c867cb558d4308522bc3e341d9054e82

src/gromacs/mdlib/sim_util.cpp

index 984df2b145646d88ecbbb6377a3a9e791c1b2713..07644556aaf76f22885166f8bafb2fccc4db81ae 100644 (file)
@@ -930,13 +930,6 @@ void do_force(FILE*                               fplog,
     interaction_const_t*         ic       = fr->ic;
     gmx::StatePropagatorDataGpu* stateGpu = fr->stateGpu;
 
-    // TODO remove the code below when the legacy flags are not in use anymore
-    /* modify force flag if not doing nonbonded */
-    if (!fr->bNonbonded)
-    {
-        legacyFlags &= ~GMX_FORCE_NONBONDED;
-    }
-
     const SimulationWorkload& simulationWork = runScheduleWork->simulationWork;