From 639edaba60187b3453b728a3ab375e795c0a5c31 Mon Sep 17 00:00:00 2001 From: George Bisbas Date: Tue, 16 Jul 2024 11:48:31 +0100 Subject: [PATCH] tests: Add trigonometric --- devito/ir/xdsl_iet/cluster_to_ssa.py | 5 +---- tests/test_xdsl_base.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/devito/ir/xdsl_iet/cluster_to_ssa.py b/devito/ir/xdsl_iet/cluster_to_ssa.py index b67a89299a..e4b1c2963f 100644 --- a/devito/ir/xdsl_iet/cluster_to_ssa.py +++ b/devito/ir/xdsl_iet/cluster_to_ssa.py @@ -299,9 +299,7 @@ def _visit_math_nodes(self, dim: SteppingDimension, node: Expr, return math.CosOp(self._visit_math_nodes(dim, node.args[0], output_indexed)).result - - # return reduce(lambda x, y : arith.AndI(x, y).result, SSAargs) - + elif isinstance(node, Relational): if isinstance(node, GreaterThan): mnemonic = "sge" @@ -324,7 +322,6 @@ def _visit_math_nodes(self, dim: SteppingDimension, node: Expr, return arith.Cmpi(*self._ensure_same_type(*SSAargs), mnemonic).result else: - import pdb; pdb.set_trace() raise NotImplementedError(f"Unknown math:{type(node)} {node}", node) def build_stencil_step(self, dim: SteppingDimension, eq: LoweredEq) -> None: diff --git a/tests/test_xdsl_base.py b/tests/test_xdsl_base.py index 7a6ef59b76..bfd793770b 100644 --- a/tests/test_xdsl_base.py +++ b/tests/test_xdsl_base.py @@ -1,6 +1,5 @@ import numpy as np import pytest -from sympy import S from devito import (Grid, TensorTimeFunction, VectorTimeFunction, div, grad, diag, solve, Operator, Eq, Constant, norm, SpaceDimension, switchconfig, sin, cos)