Fuse two adjacent neighbor search branches in do_force
authorejjordan <e.jjordan12@gmail.com>
Thu, 14 Nov 2019 13:03:19 +0000 (14:03 +0100)
committerJoe Jordan <e.jjordan12@gmail.com>
Fri, 15 Nov 2019 06:49:22 +0000 (07:49 +0100)
Change-Id: I8f81451fbce86f1bd26388ed2348112363bc3bbf

src/gromacs/mdlib/sim_util.cpp

index 98e81975ca4c68955b21c61aecb8976d1f3a9c29..aa2c7dbadf658d315fe13a2ac4a33c9a5261dacd 100644 (file)
@@ -1133,10 +1133,7 @@ void do_force(FILE*                               fplog,
             }
             wallcycle_stop(wcycle, ewcLAUNCH_GPU);
         }
-    }
 
-    if (stepWork.doNeighborSearch)
-    {
         // Need to run after the GPU-offload bonded interaction lists
         // are set up to be able to determine whether there is bonded work.
         runScheduleWork->domainWork = setupDomainLifetimeWorkload(