git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5693 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2011-02-22 17:57:19 +00:00
parent 6d6d45f25e
commit 658d4c20ff
1 changed files with 3 additions and 3 deletions

View File

@ -817,9 +817,9 @@ double FixAveHisto::compute_vector(int i)
double FixAveHisto::compute_array(int i, int j)
{
if (j == 0) return coord[j];
else if (j == 1) return bin_total[j];
else if (stats_total[0] != 0.0) return bin_total[j]/stats_total[0];
if (j == 0) return coord[i];
else if (j == 1) return bin_total[i];
else if (stats_total[0] != 0.0) return bin_total[i]/stats_total[0];
return 0.0;
}