From 2700ce54199921003e93e113b1099ff805128f8e Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Sat, 16 Nov 2024 00:06:46 +0100
Subject: [PATCH] Fix unit tests

---
 tests/test_DiscreteFunctionP0.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test_DiscreteFunctionP0.cpp b/tests/test_DiscreteFunctionP0.cpp
index 90ebb76d8..7eb264566 100644
--- a/tests/test_DiscreteFunctionP0.cpp
+++ b/tests/test_DiscreteFunctionP0.cpp
@@ -2742,7 +2742,7 @@ TEST_CASE("DiscreteFunctionP0", "[scheme]")
             parallel_for(
               mesh->numberOfCells(), PUGS_LAMBDA(const CellId cell_id) {
                 const double x = xj[cell_id][0];
-                Ah[cell_id]    = TinyMatrix<2>{2.3 * x, 1 - x, 2 * x, 1.5 * x};
+                Bh[cell_id]    = TinyMatrix<2>{2.3 * x, 1 - x, 2 * x, 1.5 * x};
               });
 
             CHECK_STD_BINARY_MATH_FUNCTION(Ah, Bh, doubleDot);
@@ -3178,7 +3178,7 @@ TEST_CASE("DiscreteFunctionP0", "[scheme]")
             parallel_for(
               mesh->numberOfCells(), PUGS_LAMBDA(const CellId cell_id) {
                 const double x = xj[cell_id][0];
-                Ah[cell_id]    = TinyMatrix<2>{2.3 * x, 1 - x, 2 * x, 1.5 * x};
+                Bh[cell_id]    = TinyMatrix<2>{2.3 * x, 1 - x, 2 * x, 1.5 * x};
               });
 
             CHECK_STD_BINARY_MATH_FUNCTION(Ah, Bh, doubleDot);
@@ -3567,7 +3567,7 @@ TEST_CASE("DiscreteFunctionP0", "[scheme]")
             parallel_for(
               mesh->numberOfCells(), PUGS_LAMBDA(const CellId cell_id) {
                 const double x = xj[cell_id][0];
-                Ah[cell_id]    = TinyMatrix<2>{2.3 * x, 1 - x, 2 * x, 1.5 * x};
+                Bh[cell_id]    = TinyMatrix<2>{2.3 * x, 1 - x, 2 * x, 1.5 * x};
               });
 
             CHECK_STD_BINARY_MATH_FUNCTION(Ah, Bh, doubleDot);
-- 
GitLab