From 3b2f5b487e3ae0dc2c349b8b5e2a959965b3564d Mon Sep 17 00:00:00 2001
From: Michael Kuron <mkuron@icp.uni-stuttgart.de>
Date: Thu, 11 Feb 2021 22:41:35 +0100
Subject: [PATCH] Fluctuating MRT: infer RNG precision from field precision

Otherwise vectorization will fail
---
 tests/lbm/codegen/FluctuatingMRT.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/lbm/codegen/FluctuatingMRT.py b/tests/lbm/codegen/FluctuatingMRT.py
index 71a102612..4db0ca9ba 100644
--- a/tests/lbm/codegen/FluctuatingMRT.py
+++ b/tests/lbm/codegen/FluctuatingMRT.py
@@ -44,6 +44,7 @@ with CodeGeneration() as ctx:
         fluctuating={
             'temperature': temperature,
             'block_offsets': 'walberla',
+            'rng_node': ps.rng.PhiloxTwoDoubles if ctx.double_accuracy else ps.rng.PhiloxFourFloats,
         },
         optimization={'cse_global': True}
     )
-- 
GitLab