diff --git a/src/atom.cpp b/src/atom.cpp index 72bdc8a0e7..315097261b 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -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;