From cfdf442be0886bf164736181aaa655711c9abec6 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Fri, 3 Jan 2020 12:14:53 +0100
Subject: [PATCH] Add InterpolatorAccess.__getnewargs__

---
 pystencils/interpolation_astnodes.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pystencils/interpolation_astnodes.py b/pystencils/interpolation_astnodes.py
index 27b119481..125a3a598 100644
--- a/pystencils/interpolation_astnodes.py
+++ b/pystencils/interpolation_astnodes.py
@@ -287,6 +287,9 @@ class InterpolatorAccess(TypedSymbol):
     # noinspection SpellCheckingInspection
     __xnew_cached_ = staticmethod(cacheit(__new_stage2__))
 
+    def __getnewargs__(self):
+        return self.symbol, self.offsets
+
 ##########################################################################################
 # GPU-specific fast specializations (for precision GPUs can also use above nodes/symbols #
 ##########################################################################################
-- 
GitLab