Commit f35dbf6f authored by Julian Hammer's avatar Julian Hammer
Browse files

fixed inclusion of scalars in variable configuration

parent 024717a4
......@@ -94,10 +94,11 @@ class PyStencilsKerncraftKernel(kerncraft.kernel.KernelCode):
permuted_shape = list(field.shape[i] for i in layout)
self.set_variable(field.name, str(field.dtype), tuple(permuted_shape))
for param in ast.get_parameters():
if not param.is_field_parameter:
self.set_variable(param.symbol.name, str(param.symbol.dtype), None)
self.sources[param.symbol.name] = [None]
# Scalars may be safely ignored
# for param in ast.get_parameters():
# if not param.is_field_parameter:
# # self.set_variable(param.symbol.name, str(param.symbol.dtype), None)
# self.sources[param.symbol.name] = [None]
# data type
self.datatype = list(self.variables.values())[0][0]
......
Markdown is supported
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