From 3842aa609531430dfed1d4638609354283558e33 Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Fri, 9 Sep 2016 15:23:40 -0400
Subject: [PATCH] forward skip lists /omp neighbor list builds to non-omp
 implementations

---
 src/USER-OMP/npair_skip_omp.h | 51 +++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 src/USER-OMP/npair_skip_omp.h

diff --git a/src/USER-OMP/npair_skip_omp.h b/src/USER-OMP/npair_skip_omp.h
new file mode 100644
index 0000000000..b909dd7e12
--- /dev/null
+++ b/src/USER-OMP/npair_skip_omp.h
@@ -0,0 +1,51 @@
+/* -*- c++ -*- ----------------------------------------------------------
+   LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
+   http://lammps.sandia.gov, Sandia National Laboratories
+   Steve Plimpton, sjplimp@sandia.gov
+
+   Copyright (2003) Sandia Corporation.  Under the terms of Contract
+   DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
+   certain rights in this software.  This software is distributed under
+   the GNU General Public License.
+
+   See the README file in the top-level LAMMPS directory.
+------------------------------------------------------------------------- */
+
+// There is no benefit from multi-threading for skip lists, so we
+// just forward the requests to the corresponding non-omp versions.
+
+#ifdef NPAIR_CLASS
+
+NPairStyle(skip/omp,
+           NPairSkip,
+           NP_SKIP | NP_HALF | NP_FULL | NP_NSQ | NP_BIN | NP_MULTI |
+           NP_NEWTON | NP_NEWTOFF | NP_ORTHO | NP_TRI | NP_OMP)
+
+NPairStyle(skip/half/respa/omp,
+           NPairSkipRespa,
+           NP_SKIP | NP_RESPA | NP_HALF | NP_FULL |
+           NP_NSQ | NP_BIN | NP_MULTI |
+           NP_NEWTON | NP_NEWTOFF | NP_ORTHO | NP_TRI | NP_OMP)
+
+NPairStyle(skip/half/size/omp,
+           NPairSkipSize,
+           NP_SKIP | NP_SIZE | NP_HALF | NP_FULL | NP_NSQ | NP_BIN | NP_MULTI |
+           NP_NEWTON | NP_NEWTOFF | NP_ORTHO | NP_TRI | NP_OMP)
+
+NPairStyle(skip/size/off2on/omp,
+           NPairSkipSizeOff2on,
+           NP_SKIP | NP_SIZE | NP_OFF2ON | NP_HALF |
+           NP_NSQ | NP_BIN | NP_MULTI |
+           NP_NEWTON | NP_NEWTOFF | NP_ORTHO | NP_TRI | NP_OMP)
+
+NPairStyle(skip/size/off2on/oneside/omp,
+           NPairSkipSizeOff2onOneside,
+           NP_SKIP | NP_SIZE | NP_OFF2ON | NP_ONESIDE | NP_HALF |
+           NP_NSQ | NP_BIN | NP_MULTI | NP_NEWTON | NP_NEWTOFF |
+           NP_ORTHO | NP_TRI | NP_OMP)
+
+#endif
+
+/* ERROR/WARNING messages:
+
+*/
-- 
GitLab