clang-tidy: readability-non-const-parameter (2/2)
[alexxy/gromacs.git] / src / gromacs / gmxana / gstat.h
index f9c8e8e7d10f7f37ff867399f53cd3c295074d2e..8959b01446d6c9cc7a0b5224863fb3c4130876c9 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) 2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2013,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.
@@ -86,7 +86,7 @@ typedef struct {
     real        Jcsig;   /* Standard deviation in Jc */
 } t_karplus;
 
-void calc_distribution_props(int nh, int histo[],
+void calc_distribution_props(int nh, const int histo[],
                              real start, int  nkkk, t_karplus kkk[],
                              real *S2);
 /* This routine takes a dihedral distribution and calculates
@@ -204,7 +204,7 @@ void make_histo(FILE *log,
  *           if both are 0, these values are computed by the routine itself
  */
 
-void normalize_histo(int npoints, int histo[], real dx, real normhisto[]);
+void normalize_histo(int npoints, const int histo[], real dx, real normhisto[]);
 /*
  * Normalize a histogram so that the integral over the histo is 1
  *
@@ -254,7 +254,7 @@ void analyse_corr(int n, real t[], real ct[], real nt[], real kt[],
                   real sigma_ct[], real sigma_nt[], real sigma_kt[],
                   real fit_start, real temp);
 
-void compute_derivative(int nn, real x[], real y[], real dydx[]);
+void compute_derivative(int nn, const real x[], const real y[], real dydx[]);
 
 #ifdef __cplusplus
 }