Enable neighbor build on the device for pair hybrid substyles #1430
When used with pair hybrid and hybrid/overlay the GPU package enforces the neighbor lists to be built on the host (i.e. neigh no). This PR lifts this enforcement, allowing for the use of "neigh yes" and "split -1" for the command "package gpu" when using pair hybrid and pair hybrid/overlay with multiple /gpu pair styles.
Trung Nguyen (Northwestern)
By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).
The changes in this PR should maintain backward compability.
Moved the initilization of Neighbor storage out of Device::init() into a separate function (i.e. init_nbor()) so that the pair styles allocate the required memory on their own Neighbor instance. This change leads to updates in the function init_atomic() the Base* classes.
Post Submission Checklist
Further Information, Files, and Links