Commit 5f0029a6 authored by incardon's avatar incardon
Browse files

Fixing Cell-List

parent 885878c8
......@@ -54,7 +54,17 @@ public:
* \return element i
*
*/
inline long int operator[](size_t i) const
inline const long int & operator[](size_t i) const
{
return NNc_arr[i];
}
/*! \brief return the element i
*
* \return element i
*
*/
inline long int & operator[](size_t i)
{
return NNc_arr[i];
}
......
......@@ -274,7 +274,7 @@ public:
bool wr = true;
for (size_t i = 0 ; i < dim ; i++)
wr &= r_cut <= spacing.get(i);
{wr &= r_cut <= spacing.get(i);}
if (wr == true || opt == VL_SYMMETRIC)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment