Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
f35dbf6f
Commit
f35dbf6f
authored
Apr 03, 2019
by
Julian Hammer
Browse files
fixed inclusion of scalars in variable configuration
parent
024717a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/kerncraft_coupling/kerncraft_interface.py
View file @
f35dbf6f
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment