From e6c3f5098da5997c8ce49b23b5232ad3d11f48eb Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Sat, 2 Dec 2017 21:51:48 +0100
Subject: [PATCH] Bugfixes - float kernel generation should work now

---
 transformations/transformations.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/transformations/transformations.py b/transformations/transformations.py
index 1a8b797f6..a1202dd75 100644
--- a/transformations/transformations.py
+++ b/transformations/transformations.py
@@ -630,10 +630,8 @@ def typeAllEquations(eqs, typeForSymbol):
     :return: ``fieldsRead, fieldsWritten, typedEquations`` set of read fields, set of written fields, list of equations
                where symbols have been replaced by typed symbols
     """
-    if not typeForSymbol or typeForSymbol == 'double':
-        typeForSymbol = typingFromSympyInspection(eqs, "double")
-    elif typeForSymbol == 'float':
-        typeForSymbol = typingFromSympyInspection(eqs, "float")
+    if isinstance(typeForSymbol, str) or not hasattr(typeForSymbol, '__getitem__'):
+        typeForSymbol = typingFromSympyInspection(eqs, typeForSymbol)
 
     fieldsWritten = set()
     fieldsRead = set()
-- 
GitLab