From 53807242b8f2eae36b75abb3d101d53b3948157a Mon Sep 17 00:00:00 2001
From: zy69guqi <richard.angersbach@fau.de>
Date: Thu, 30 Jan 2025 16:20:25 +0100
Subject: [PATCH] Remove orig_symbol from reduction info as it is not needed

---
 src/pystencils/backend/kernelcreation/context.py | 2 --
 src/pystencils/backend/kernelcreation/freeze.py  | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/pystencils/backend/kernelcreation/context.py b/src/pystencils/backend/kernelcreation/context.py
index 868a7852c..67d5b1c1d 100644
--- a/src/pystencils/backend/kernelcreation/context.py
+++ b/src/pystencils/backend/kernelcreation/context.py
@@ -52,8 +52,6 @@ class ReductionInfo:
 
     op: ReductionOp
     init_val: PsExpression
-
-    orig_symbol: PsSymbol
     ptr_symbol: PsSymbol
 
 
diff --git a/src/pystencils/backend/kernelcreation/freeze.py b/src/pystencils/backend/kernelcreation/freeze.py
index c8d84c1b4..cfa145e5a 100644
--- a/src/pystencils/backend/kernelcreation/freeze.py
+++ b/src/pystencils/backend/kernelcreation/freeze.py
@@ -220,7 +220,7 @@ class FreezeExpressions:
             case _:
                 raise FreezeError(f"Unsupported reduced assignment: {expr.op}.")
 
-        reduction_info = ReductionInfo(expr.op, init_val, orig_lhs_symb, orig_lhs_symb_as_ptr)
+        reduction_info = ReductionInfo(expr.op, init_val, orig_lhs_symb_as_ptr)
 
         # add new symbol for local copy, replace original copy with pointer counterpart and add reduction info
         self._ctx.add_symbol(new_lhs_symb)
-- 
GitLab