diff --git a/backends/cbackend.py b/backends/cbackend.py index 54be489c5ecae73f79ff9c3a95d6664ef1687125..a8c1c32c0e17d9b27be694304bb78acc89c2faf0 100644 --- a/backends/cbackend.py +++ b/backends/cbackend.py @@ -9,7 +9,7 @@ except ImportError: from sympy.printing.ccode import CCodePrinter # for sympy versions < 1.1 from pystencils.integer_functions import bitwise_xor, bit_shift_right, bit_shift_left, bitwise_and, \ - bitwise_or, modulo_floor, modulo_ceil + bitwise_or, modulo_ceil from pystencils.astnodes import Node, KernelFunction from pystencils.data_types import create_type, PointerType, get_type_of_expression, VectorType, cast_func, \ vector_memory_access diff --git a/stencils.py b/stencils.py index 428d22dc6af6f2a9b3cf71a0d72130cc16f1dde5..4036b4ec1c7fb9b750ea47f07ab331374e27ccca 100644 --- a/stencils.py +++ b/stencils.py @@ -149,9 +149,6 @@ def stencil_coefficient_list(expr, matrix_form=False): raise ValueError("Can only handle fields with 1,2 or 3 spatial dimensions") -def inverse_direction(direction): - return type(direction)(-e for e in direction) - # ------------------------------------- Point-on-compass notation ------------------------------------------------------