From ad5d68d27c5f6abbea1f7fc00e0f99af8b3b033e Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Mon, 15 Jul 2019 16:14:39 +0200
Subject: [PATCH] GPU benchmark: added cumulant

---
 apps/benchmarks/UniformGridGPU/CMakeLists.txt    | 1 +
 apps/benchmarks/UniformGridGPU/UniformGridGPU.py | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/apps/benchmarks/UniformGridGPU/CMakeLists.txt b/apps/benchmarks/UniformGridGPU/CMakeLists.txt
index c1f1c950a..886cbf456 100644
--- a/apps/benchmarks/UniformGridGPU/CMakeLists.txt
+++ b/apps/benchmarks/UniformGridGPU/CMakeLists.txt
@@ -15,6 +15,7 @@ waLBerla_python_file_generates(UniformGridGPU.py
 
 foreach(config srt trt mrt smagorinsky entropic smagorinsky_noopt entropic_kbc_n4
         entropic_kbc_n4_noopt mrt_noopt mrt_full mrt_full_noopt
+        cumulant cumulant_d3q27
         srt_d3q27 mrt_d3q27 mrt_d3q27_noopt smagorinsky_d3q27 smagorinsky_d3q27_noopt mrt_full_d3q27 mrt_full_d3q27_noopt)
     waLBerla_add_executable ( NAME UniformGridBenchmarkGPU_${config}
                               FILES UniformGridGPU.cpp UniformGridGPU.py
diff --git a/apps/benchmarks/UniformGridGPU/UniformGridGPU.py b/apps/benchmarks/UniformGridGPU/UniformGridGPU.py
index 934bb7122..c8a257506 100644
--- a/apps/benchmarks/UniformGridGPU/UniformGridGPU.py
+++ b/apps/benchmarks/UniformGridGPU/UniformGridGPU.py
@@ -70,7 +70,14 @@ options_dict = {
         'stencil': 'D3Q19',
         'smagorinsky': True,
         'relaxation_rate': omega,
-    }
+    },
+    'cumulant': {
+        'stencil': 'D3Q19',
+        'compressible': True,
+        'method': 'mrt',
+        'cumulant': True,
+        'relaxation_rates': [0, omega, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+    },
 }
 
 info_header = """
-- 
GitLab