From 791caf42f6fe573bc54bcc628a32e438d545c33e Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Fri, 20 Jan 2017 14:55:06 +0100
Subject: [PATCH] pystencils: fixed problem in pickle/copy support

---
 field.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/field.py b/field.py
index 4c52bb193..eb0dc0c3f 100644
--- a/field.py
+++ b/field.py
@@ -220,7 +220,7 @@ class Field:
             return obj
 
         def __getnewargs__(self):
-            return self.name, self.offsets, self.index
+            return self.field, self.offsets, self.index
 
         __xnew__ = staticmethod(__new_stage2__)
         __xnew_cached_ = staticmethod(cacheit(__new_stage2__))
-- 
GitLab