diff --git a/src/Grid/grid_sm.hpp b/src/Grid/grid_sm.hpp index ed96216e14832599a3f2a1a1cddc1871c9679ced..4680783c39ebae0ec164e46d5bf4785309d632e9 100644 --- a/src/Grid/grid_sm.hpp +++ b/src/Grid/grid_sm.hpp @@ -108,12 +108,12 @@ struct ite_gpu grid_key_dx<dim,int> start; grid_key_dx<dim,int> stop; - size_t nblocks() + size_t nblocks() const { return wthr.x * wthr.y * wthr.z; } - size_t nthrs() + size_t nthrs() const { return thr.x * thr.y * thr.z; } diff --git a/src/Space/Shape/Point.hpp b/src/Space/Shape/Point.hpp index 6391bb54123ddd76ecf97cce676f9c0d3a7c492a..91f6225269b2cf9d01b43abda94a25ce53dc0380 100644 --- a/src/Space/Shape/Point.hpp +++ b/src/Space/Shape/Point.hpp @@ -228,7 +228,7 @@ template<unsigned int dim ,typename T> class Point * \return the norm of the vector * */ - __device__ __host__ T norm() + __device__ __host__ T norm() const { T n = 0.0;