-/*! \brief Check that atom locality values are valid for the GPU module.
- *
- * In the GPU module atom locality "all" is not supported, the local and
- * non-local ranges are treated separately.
- *
- * \param[in] atomLocality atom locality specifier
- */
-static inline void validateGpuAtomLocality(const AtomLocality atomLocality)
-{
- std::string str = gmx::formatString(
- "Invalid atom locality passed (%d); valid here is only "
- "local (%d) or nonlocal (%d)",
- static_cast<int>(atomLocality),
- static_cast<int>(AtomLocality::Local),
- static_cast<int>(AtomLocality::NonLocal));
-
- GMX_ASSERT(atomLocality == AtomLocality::Local || atomLocality == AtomLocality::NonLocal, str.c_str());
-}
-