Skip to content
Snippets Groups Projects
Commit 242f1c78 authored by Markus Holzer's avatar Markus Holzer
Browse files

Update lbstep.py

parent b175fb7b
No related branches found
No related tags found
1 merge request!167[BugFix] Segfault LBStep
Pipeline #65425 failed
...@@ -49,6 +49,9 @@ class LatticeBoltzmannStep: ...@@ -49,6 +49,9 @@ class LatticeBoltzmannStep:
default_target=target, default_target=target,
parallel=False) parallel=False)
if lbm_config:
method_parameters['stencil'] = lbm_config.stencil
if 'stencil' not in method_parameters: if 'stencil' not in method_parameters:
method_parameters['stencil'] = LBStencil(Stencil.D2Q9) \ method_parameters['stencil'] = LBStencil(Stencil.D2Q9) \
if data_handling.dim == 2 else LBStencil(Stencil.D3Q27) if data_handling.dim == 2 else LBStencil(Stencil.D3Q27)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment