diff --git a/src/lbmpy/lbstep.py b/src/lbmpy/lbstep.py index 9bafbe6b8917e00e891b5a3fe68f03781f96a864..4b22c9deacd7ad93e737f6510716d557702951a4 100644 --- a/src/lbmpy/lbstep.py +++ b/src/lbmpy/lbstep.py @@ -49,6 +49,9 @@ class LatticeBoltzmannStep: default_target=target, parallel=False) + if lbm_config: + method_parameters['stencil'] = lbm_config.stencil + if 'stencil' not in method_parameters: method_parameters['stencil'] = LBStencil(Stencil.D2Q9) \ if data_handling.dim == 2 else LBStencil(Stencil.D3Q27)