From 89c29d87d0e87cf955e1405a2e944eb6a9cd615f Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Sun, 5 May 2019 16:03:48 +0200 Subject: [PATCH] Adaptations to pystencils changes: stencil function renaming --- lbmpy_walberla/walberla_lbm_generation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbmpy_walberla/walberla_lbm_generation.py b/lbmpy_walberla/walberla_lbm_generation.py index e93ffb2..5e094a1 100644 --- a/lbmpy_walberla/walberla_lbm_generation.py +++ b/lbmpy_walberla/walberla_lbm_generation.py @@ -8,7 +8,7 @@ from pystencils import AssignmentCollection from pystencils.astnodes import SympyAssignment from pystencils.sympyextensions import get_symmetric_part from pystencils.field import Field -from pystencils.stencils import offset_to_direction_string, stencils_have_same_entries +from pystencils.stencil import offset_to_direction_string, have_same_entries from pystencils.backends.cbackend import CustomSympyPrinter, CBackend, get_headers from pystencils.data_types import TypedSymbol from pystencils.transformations import add_types @@ -255,5 +255,5 @@ def equations_to_code(equations, variable_prefix="lm.", variables_without_prefix def get_stencil_name(stencil): for name in ('D2Q9', 'D3Q15', 'D3Q19', 'D3Q27'): - if stencils_have_same_entries(stencil, get_stencil(name, 'walberla')): + if have_same_entries(stencil, get_stencil(name, 'walberla')): return name -- GitLab