From 81076bbe173f752006362ac0fe2192cfcea0c5eb Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Tue, 29 Mar 2022 17:58:15 +0200
Subject: [PATCH] Fixing const iterator

---
 src/Grid/grid_sm.hpp      | 4 ++--
 src/Space/Shape/Point.hpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Grid/grid_sm.hpp b/src/Grid/grid_sm.hpp
index ed96216e..4680783c 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 6391bb54..91f62252 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;
 
-- 
GitLab