Fix nblib pairlist update function
authorejjordan <ejjordan@kth.se>
Fri, 22 Oct 2021 04:13:06 +0000 (06:13 +0200)
committerejjordan <ejjordan@kth.se>
Fri, 22 Oct 2021 04:13:15 +0000 (06:13 +0200)
commit775d35161018215ec03dc68c6fb6139bdf6604ab
tree347428c1491c2d6580e0540a3a77e6dee887796f
parent0558c2b62eb4a41bafba23dbd55c1e6ad05c1926
Fix nblib pairlist update function

Previously the function put_atoms_in_box was called only by the
nblib integrator, or when constructing a system via a SimulationState
object. In the case of the integrator, this is a needless performance
degradation. When using an nb force calculator without
first putting atoms in the box, this could lead to a cryptic
error from nbnxm grid search failure. Both of these issues are
rectified with this change, which also adds a member to the
non-bonded force calculator to hold the requested number of OMP
threads to use in a call to put_atoms_in_box_omp, which is faster
than the non OMP version.
api/nblib/gmxbackenddata.h
api/nblib/gmxcalculatorcpu.cpp
api/nblib/gmxcalculatorcpu.h
api/nblib/integrator.cpp
api/nblib/integrator.h