From 490ec9144b01c10c6a6e8d1a927fd42e37a56511 Mon Sep 17 00:00:00 2001
From: zy69guqi <richard.angersbach@fau.de>
Date: Fri, 25 Apr 2025 15:51:08 +0200
Subject: [PATCH] Omit old stuff from reduction_op_to_expr

---
 src/pystencils/backend/reduction_op_mapping.py | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/pystencils/backend/reduction_op_mapping.py b/src/pystencils/backend/reduction_op_mapping.py
index 59273efab..389c0940a 100644
--- a/src/pystencils/backend/reduction_op_mapping.py
+++ b/src/pystencils/backend/reduction_op_mapping.py
@@ -1,16 +1,8 @@
 from .ast.expressions import PsExpression, PsCall, PsAdd, PsSub, PsMul, PsDiv
-from .exceptions import FreezeError
+from .exceptions import PsInternalCompilerError
 from .functions import PsMathFunction, MathFunctions
 from ..sympyextensions.reduction import ReductionOp
 
-_available_operator_interface: set[ReductionOp] = {
-    ReductionOp.Add,
-    ReductionOp.Sub,
-    ReductionOp.Mul,
-    ReductionOp.Div,
-}
-
-
 def reduction_op_to_expr(op: ReductionOp, op1, op2) -> PsExpression:
     match op:
         case ReductionOp.Add:
@@ -26,6 +18,6 @@ def reduction_op_to_expr(op: ReductionOp, op1, op2) -> PsExpression:
         case ReductionOp.Max:
             return PsCall(PsMathFunction(MathFunctions.Max), [op1, op2])
         case _:
-            raise FreezeError(
+            raise PsInternalCompilerError(
                 f"Found unsupported operation type for reduction assignments: {op}."
             )
-- 
GitLab