From 6236375f28d79d926d53ccac88e3a002dcfcf96a Mon Sep 17 00:00:00 2001
From: Max Jaeschke <max.jaeschke@htwk-leipzig.de>
Date: Mon, 16 Sep 2024 07:37:09 +0200
Subject: [PATCH] Add test for Mass Lumping in BeierSandbox-Benchmark

---
 ProcessLib/HeatTransportBHE/Tests.cmake            | 14 ++++++++++++++
 .../3D_Beier_sandbox/beier_sandbox_MassLumping.xml |  7 +++++++
 2 files changed, 21 insertions(+)
 create mode 100644 Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_MassLumping.xml

diff --git a/ProcessLib/HeatTransportBHE/Tests.cmake b/ProcessLib/HeatTransportBHE/Tests.cmake
index aefde3e27da..269f8d3089d 100644
--- a/ProcessLib/HeatTransportBHE/Tests.cmake
+++ b/ProcessLib/HeatTransportBHE/Tests.cmake
@@ -124,6 +124,20 @@ AddTest(
     beier_sandbox_ts_10_t_600.000000.vtu beier_sandbox_algebraic_bc_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 5e-10
 )
 
+AddTest(
+    NAME HeatTransportBHE_1U_3D_MassLumping
+    PATH Parabolic/T/3D_Beier_sandbox
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS beier_sandbox_MassLumping.xml
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    RUNTIME 20
+    DIFF_DATA
+    beier_sandbox_ts_10_t_600.000000.vtu beier_sandbox_mass_lumping_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 1e-6
+    beier_sandbox_ts_10_t_600.000000.vtu beier_sandbox_mass_lumping_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-4
+)
+
 AddTest(
     NAME HeatTransportBHE_1U_beier_sandbox_fixed_power_constant_flow
     PATH Parabolic/T/3D_Beier_sandbox
diff --git a/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_MassLumping.xml b/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_MassLumping.xml
new file mode 100644
index 00000000000..e180d0d2fac
--- /dev/null
+++ b/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_MassLumping.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<OpenGeoSysProjectDiff base_file="beier_sandbox.prj">
+    <add sel="/*/processes/process">
+        <mass_lumping>true</mass_lumping>
+    </add>
+    <replace sel="/*/time_loop/output/prefix/text()">beier_sandbox_mass_lumping</replace>
+</OpenGeoSysProjectDiff>
-- 
GitLab