From 8ac50c85775870e746d55c55dcc16bea960f515d Mon Sep 17 00:00:00 2001
From: HOCH PHILIPPE <philippe.hoch@gmail.com>
Date: Tue, 4 Mar 2025 22:24:46 +0100
Subject: [PATCH] Bug Fixed in const template in limitor expression

---
 src/scheme/CellbyCellLimitation.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scheme/CellbyCellLimitation.hpp b/src/scheme/CellbyCellLimitation.hpp
index 97d11a07e..a443e71ef 100644
--- a/src/scheme/CellbyCellLimitation.hpp
+++ b/src/scheme/CellbyCellLimitation.hpp
@@ -149,7 +149,7 @@ class CellByCellLimitation
     const DiscreteFunctionP0<const double>& epsilon,
     // const DiscreteFunctionDPk<Dimension, double>&
     auto epsilon_R(const CellId cell_id, const Rd& x),
-    CellValue<const double>& lambda_epsilon)   // const
+    CellValue<double>& lambda_epsilon)   // const
   //                                DiscreteFunctionDPk<Dimension, double>& epsilon_R) const
   {
     const auto& cell_to_face_matrix = mesh.connectivity().cellToFaceMatrix();
@@ -171,7 +171,7 @@ class CellByCellLimitation
     // QuadratureManager::instance().getLineFormula(GaussLegendreQuadratureDescriptor(m_quadrature_degree));
 
     parallel_for(
-      mesh.numberOfCells(), PUGS_LAMBDA(const CellId cell_id) {
+      mesh.numberOfCells(), PUGS_LAMBDA(CellId cell_id) {
         const double epsilonj = epsilon[cell_id];
 
         double epsilon_min = epsilonj;
-- 
GitLab