Move locality.h from nbnxm to mdtypes
[alexxy/gromacs.git] / src / gromacs / mdtypes / locality.h
similarity index 80%
rename from src/gromacs/nbnxm/locality.h
rename to src/gromacs/mdtypes/locality.h
index 6ebd4fb409b74d8638544114247c4f717f3450c2..d8cbce46277ea8743b08d5890f4c7a7d1737564f 100644 (file)
  */
 
 /*! \libinternal \file
- * \brief Defines nbnxn locality enums
+ * \brief Defines atom and atom interaction locality enums
  *
  * \author Berk Hess <hess@kth.se>
- * \ingroup module_nbnxm
+ * \ingroup module_mdtypes
  */
 
-#ifndef GMX_NBNXM_LOCALITY_H
-#define GMX_NBNXM_LOCALITY_H
+#ifndef GMX_MDTYPES_LOCALITY_H
+#define GMX_MDTYPES_LOCALITY_H
 
-namespace Nbnxm
+#include "gromacs/utility/enumerationhelpers.h"
+
+namespace gmx
 {
 
 /*! \brief Atom locality indicator: local, non-local, all.
@@ -59,6 +61,9 @@ enum class AtomLocality : int
     Count    = 3  //!< The number of atom locality types
 };
 
+/*! \brief Descriptive strings for atom localities */
+static const EnumerationArray<AtomLocality, const char *> c_atomLocalityNames = { "local", "non-local", "all" };
+
 /*! \brief Interaction locality indicator: local, non-local, all.
  *
  * Used for calls to:
@@ -71,6 +76,9 @@ enum class InteractionLocality : int
     Count    = 2  //!< The number of interaction locality types
 };
 
-}      // namespace Nbnxm
+/*! \brief Descriptive strings for interaction localities */
+static const EnumerationArray<InteractionLocality, const char *> c_interactionLocalityNames = { "local", "non-local" };
+
+}      // namespace gmx
 
-#endif // GMX_NBNXM_LOCALITY_H
+#endif // GMX_MDTYPES_LOCALITY_H