Refactor md_enums
[alexxy/gromacs.git] / src / gromacs / mdlib / vcm.h
index b0c142474101f740f8fda554d70e1b6ee6382118..eb33b56e4253c673dd523354a5f8a6987a4f0309 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
  * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -43,6 +43,7 @@
 #include <vector>
 
 #include "gromacs/math/vectypes.h"
+#include "gromacs/mdtypes/md_enums.h"
 #include "gromacs/utility/basedefinitions.h"
 #include "gromacs/utility/real.h"
 
@@ -79,7 +80,7 @@ struct t_vcm
     //! Stride for thread data
     int stride = 0;
     //! One of the enums above
-    int mode = 0;
+    ComRemovalAlgorithm mode = ComRemovalAlgorithm::Linear;
     //! The number of dimensions for corr.
     int ndim = 0;
     //! The time step for COMM removal