From d6daf2689d53e8ceff6e2b983ac61b625a73cf97 Mon Sep 17 00:00:00 2001
From: Michael Kuron <mkuron@icp.uni-stuttgart.de>
Date: Sat, 25 Jul 2020 19:20:32 +0200
Subject: [PATCH] FluctuatingMRT: set the time step directly in the lattice
 model copies

---
 tests/lbm/codegen/FluctuatingMRT.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/lbm/codegen/FluctuatingMRT.cpp b/tests/lbm/codegen/FluctuatingMRT.cpp
index f7657d259..342d2d423 100644
--- a/tests/lbm/codegen/FluctuatingMRT.cpp
+++ b/tests/lbm/codegen/FluctuatingMRT.cpp
@@ -89,9 +89,7 @@ int main( int argc, char ** argv )
    timeloop.add() << BeforeFunction( [&](){ latticeModel.time_step_ = uint32_c(timeloop.getCurrentTimeStep()); }, "set RNG counter" )
                   << Sweep( [&]( IBlock * block ){
                         auto field = block->getData< PdfField_T >( pdfFieldId );
-                        field->resetLatticeModel( latticeModel );
-                        field->latticeModel().configure( *block, *blocks );
-                        WALBERLA_ASSERT_EQUAL( field->latticeModel().time_step_, latticeModel.time_step_ );
+                        field->latticeModel().time_step_ = latticeModel.time_step_;
                      }, "set RNG counter" );
    // add LBM sweep and communication to time loop
    timeloop.add() << BeforeFunction( communication, "communication" )
-- 
GitLab