Skip to content
Snippets Groups Projects
Commit 4e7953f5 authored by Martin Bauer's avatar Martin Bauer
Browse files

LB creation functions: more flexibility

- now an lbMethod or updateRule can be passed in directly
- made method/update rule/ast function independent i.e. no function
  uses the same parameters as on of the others
parent 7f8d6873
No related merge requests found
......@@ -37,7 +37,7 @@ def createKernel(listOfEquations, functionName="kernel", typeForSymbol='double',
if isinstance(term, Field.Access) or isinstance(term, TypedSymbol):
return term
elif isinstance(term, sp.Symbol):
if isinstance(typeForSymbol, str):
if not hasattr(typeForSymbol, '__getitem__'):
return TypedSymbol(term.name, createType(typeForSymbol))
else:
return TypedSymbol(term.name, typeForSymbol[term.name])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment