Fix bonded tests
[alexxy/gromacs.git] / src / gromacs / listed_forces / bonded.h
index 4a7182c88df2b848c0c5b1ab8ee1bd84ce6f1669..beb95b55289bc9d108008e7985c4b7ff42ac406a 100644 (file)
@@ -48,6 +48,8 @@
 #ifndef GMX_LISTED_FORCES_BONDED_H
 #define GMX_LISTED_FORCES_BONDED_H
 
+#include <string>
+
 #include "gromacs/math/vectypes.h"
 #include "gromacs/topology/ifunc.h"
 #include "gromacs/utility/basedefinitions.h"
@@ -58,6 +60,12 @@ struct t_mdatom;
 struct t_nrnb;
 struct t_pbc;
 
+namespace gmx
+{
+template<typename EnumType, typename DataType, EnumType ArraySize>
+struct EnumerationArray;
+} // namespace gmx
+
 /*! \brief Calculate bond-angle. No PBC is taken into account (use mol-shift) */
 real bond_angle(const rvec          xi,
                 const rvec          xj,
@@ -131,6 +139,9 @@ enum class BondedKernelFlavor
     Count                     //!< The number of flavors
 };
 
+//! Helper strings for human-readable messages
+extern const gmx::EnumerationArray<BondedKernelFlavor, std::string, BondedKernelFlavor::Count> c_bondedKernelFlavorStrings;
+
 /*! \brief Returns whether the energy should be computed */
 static constexpr inline bool computeEnergy(const BondedKernelFlavor flavor)
 {