From b7b7d4540000967c74e2e3e7df79e286466e7ebf Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Sun, 22 Dec 2024 10:44:08 +0100
Subject: [PATCH] Warning fixes

---
 src/algebra/ShrinkVectorView.hpp        | 4 ++--
 src/scheme/PolynomialReconstruction.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/algebra/ShrinkVectorView.hpp b/src/algebra/ShrinkVectorView.hpp
index cdf786c5a..83aed7cb2 100644
--- a/src/algebra/ShrinkVectorView.hpp
+++ b/src/algebra/ShrinkVectorView.hpp
@@ -23,10 +23,10 @@ class ShrinkVectorView
   friend std::ostream&
   operator<<(std::ostream& os, const ShrinkVectorView& x)
   {
-    if (x.size() > 0) {
+    if (x.dimension() > 0) {
       os << 0 << ':' << NaNHelper(x[0]);
     }
-    for (size_t i = 1; i < x.size(); ++i) {
+    for (size_t i = 1; i < x.dimension(); ++i) {
       os << ' ' << i << ':' << NaNHelper(x[i]);
     }
     return os;
diff --git a/src/scheme/PolynomialReconstruction.cpp b/src/scheme/PolynomialReconstruction.cpp
index 0e0b2a5af..55a8271a2 100644
--- a/src/scheme/PolynomialReconstruction.cpp
+++ b/src/scheme/PolynomialReconstruction.cpp
@@ -897,7 +897,7 @@ PolynomialReconstruction::_build(
   }
 
   parallel_for(
-    mesh.numberOfCells(), PUGS_LAMBDA(const CellId cell_j_id) {
+    mesh.numberOfCells(), PUGS_CLASS_LAMBDA(const CellId cell_j_id) {
       if (cell_is_owned[cell_j_id]) {
         const int32_t t = tokens.acquire();
 
-- 
GitLab