clang-tidy: readability-non-const-parameter (2/2)
[alexxy/gromacs.git] / src / gromacs / gmxana / princ.h
index 426fefb57b82f99af1e1a9677ee3591e1981344d..e89b05327bea26a53805f92f02db8f085d317fad 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014,2015,2016,2018, 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.
@@ -48,7 +48,7 @@ struct t_atoms;
 extern "C" {
 #endif
 
-void rotate_atoms(int gnx, int index[], rvec x[], matrix trans);
+void rotate_atoms(int gnx, const int index[], rvec x[], matrix trans);
 /* Rotate all atoms in index using matrix trans */
 
 void principal_comp(int n, const int index[], t_atom atom[], rvec x[],
@@ -75,7 +75,7 @@ real sub_xcm(rvec x[], int gnx, const int *index, const t_atom atom[], rvec xcm,
  * Returns the total mass
  */
 
-void add_xcm(rvec x[], int gnx, int *index, rvec xcm);
+void add_xcm(rvec x[], int gnx, const int *index, rvec xcm);
 /* Increment all atoms in index with xcm */
 
 #ifdef __cplusplus