Skip to content

Commit

Permalink
tests: Add trigonometric
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jul 16, 2024
1 parent 9d6024c commit 639edab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions devito/ir/xdsl_iet/cluster_to_ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down
1 change: 0 additions & 1 deletion tests/test_xdsl_base.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 639edab

Please sign in to comment.