Merge release-4-6 into master
[alexxy/gromacs.git] / src / tools / gmx_density.c
index 22532c4c5684360d89feffb5263ede687a23e624..630250b1a74c3b4b01357ff476c50b4588741a2a 100644 (file)
@@ -142,7 +142,7 @@ void center_coords(t_atoms *atoms,matrix box,rvec x0[],int axis)
 }
 
 void calc_electron_density(const char *fn, atom_id **index, int gnx[], 
-                          real ***slDensity, int *nslices, t_topology *top,
+                          double ***slDensity, int *nslices, t_topology *top,
                           int ePBC,
                           int axis, int nr_grps, real *slWidth, 
                           t_electron eltab[], int nr,gmx_bool bCenter,
@@ -240,7 +240,7 @@ void calc_electron_density(const char *fn, atom_id **index, int gnx[],
 }
 
 void calc_density(const char *fn, atom_id **index, int gnx[], 
-                 real ***slDensity, int *nslices, t_topology *top, int ePBC,
+                 double ***slDensity, int *nslices, t_topology *top, int ePBC,
                  int axis, int nr_grps, real *slWidth, gmx_bool bCenter,
                   const output_env_t oenv)
 {
@@ -324,7 +324,7 @@ void calc_density(const char *fn, atom_id **index, int gnx[],
   sfree(x0);  /* free memory used by coordinate array */
 }
 
-void plot_density(real *slDensity[], const char *afile, int nslices,
+void plot_density(double *slDensity[], const char *afile, int nslices,
                  int nr_grps, char *grpname[], real slWidth, 
                  const char **dens_opt,
                  gmx_bool bSymmetrize, const output_env_t oenv)
@@ -410,7 +410,7 @@ int gmx_density(int argc,char *argv[])
     "When calculating electron densities, atomnames are used instead of types. This is bad.",
   };
   
-  real **density;      /* density per slice          */
+  double **density;      /* density per slice          */
   real slWidth;          /* width of one slice         */
   char **grpname;        /* groupnames                 */
   int  nr_electrons;     /* nr. electrons              */