Commit 2d441113 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

ensure that binsize is initialized in all cases

parent cc1c93a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1886,7 +1886,7 @@ void Atom::setup_sort_bins()
  // check if neighbor cutoff = 0.0
  // and in that case, disable sorting

  double binsize;
  double binsize = 0.0;
  if (userbinsize > 0.0) binsize = userbinsize;
  else if (neighbor->cutneighmax > 0.0) binsize = 0.5 * neighbor->cutneighmax;