Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / mdlib / vsite.h
index 84e33aaa88336ccca14911b555e084f92e43e5bc..8069b6250c7ea87d17f57d2fc9885db171793203 100644 (file)
@@ -56,6 +56,7 @@ struct t_mdatoms;
 struct t_nrnb;
 struct gmx_wallcycle;
 struct VsiteThread;
+enum class PbcType : int;
 
 namespace gmx
 {
@@ -91,11 +92,16 @@ struct gmx_vsite_t
 /*! \brief Create positions of vsite atoms based for the local system
  *
  * \param[in]     vsite    The vsite struct, when nullptr is passed, no MPI and no multi-threading
- * is used \param[in,out] x        The coordinates \param[in]     dt       The time step \param[in,out]
- * v        When != nullptr, velocities for vsites are set as displacement/dt \param[in]     ip
- * Interaction parameters \param[in]     ilist    The interaction list \param[in]     ePBC     The
- * type of periodic boundary conditions \param[in]     bMolPBC  When true, molecules are broken over
- * PBC \param[in]     cr       The communication record \param[in]     box      The box
+ *                         is used
+ * \param[in,out] x        The coordinates
+ * \param[in]     dt       The time step
+ * \param[in,out] v        When != nullptr, velocities for vsites are set as displacement/dt
+ * \param[in]     ip       Interaction parameters
+ * \param[in]     ilist    The interaction list
+ * \param[in]     pbcType  The type of periodic boundary conditions
+ * \param[in]     bMolPBC  When true, molecules are broken over PBC
+ * \param[in]     cr       The communication record
+ * \param[in]     box      The box
  */
 void construct_vsites(const gmx_vsite_t* vsite,
                       rvec               x[],
@@ -103,7 +109,7 @@ void construct_vsites(const gmx_vsite_t* vsite,
                       rvec               v[],
                       const t_iparams    ip[],
                       const t_ilist      ilist[],
-                      int                ePBC,
+                      PbcType            pbcType,
                       gmx_bool           bMolPBC,
                       const t_commrec*   cr,
                       const matrix       box);
@@ -123,7 +129,7 @@ void spread_vsite_f(const gmx_vsite_t* vsite,
                     matrix             vir,
                     t_nrnb*            nrnb,
                     const t_idef*      idef,
-                    int                ePBC,
+                    PbcType            pbcType,
                     gmx_bool           bMolPBC,
                     const t_graph*     g,
                     const matrix       box,