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

walberla boundary class now also works for GPU boundaries

parent 5320a78b
Branches
Tags
No related merge requests found
...@@ -247,7 +247,7 @@ class CustomSympyPrinter(CCodePrinter): ...@@ -247,7 +247,7 @@ class CustomSympyPrinter(CCodePrinter):
if isinstance(arg, sp.Number): if isinstance(arg, sp.Number):
return self._typed_number(arg, data_type) return self._typed_number(arg, data_type)
else: else:
return "*((%s)(& %s))" % (PointerType(data_type), self._print(arg)) return "*((%s)(& %s))" % (PointerType(data_type, restrict=False), self._print(arg))
elif expr.func in infix_functions: elif expr.func in infix_functions:
return "(%s %s %s)" % (self._print(expr.args[0]), infix_functions[expr.func], self._print(expr.args[1])) return "(%s %s %s)" % (self._print(expr.args[0]), infix_functions[expr.func], self._print(expr.args[1]))
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment