diff --git a/src/Vector/vector_dist.hpp b/src/Vector/vector_dist.hpp index 6f42c94769949441fe7ea76365016e06de61c39d..d3ec1dc18990ebd01ac4716c1c503e84264c8010 100644 --- a/src/Vector/vector_dist.hpp +++ b/src/Vector/vector_dist.hpp @@ -439,7 +439,7 @@ public: * \return the position of the element in space * */ - inline auto getPos(size_t vec_key) const -> const decltype(v_pos.template get<0>(vec_key)) + inline auto getPos(size_t vec_key) const -> decltype(v_pos.template get<0>(vec_key)) { return v_pos.template get<0>(vec_key); } @@ -1378,7 +1378,7 @@ public: getDecomposition().setNNParameters(shift,gs); - return ParticleIt_Cells<dim,CellList>(NN,getDecomposition().getDomainCells()); + return ParticleIt_Cells<dim,CellList>(NN,getDecomposition().getDomainCells(),g_m); } /*! \brief Get an iterator that traverse the particles in the domain