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
Stephan Seitz
pystencils
Commits
df7f69df
Commit
df7f69df
authored
Dec 19, 2019
by
Stephan Seitz
Browse files
Bug fix!!!
parent
354877bb
Pipeline
#20671
passed with stage
in 2 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/datahandling/graph_datahandling.py
View file @
df7f69df
...
...
@@ -7,13 +7,13 @@
"""
"""
from
enum
import
Enum
import
numpy
as
np
import
pystencils.datahandling
import
pystencils.kernel_wrapper
import
pystencils.timeloop
from
pystencils.field
import
FieldType
...
...
@@ -181,7 +181,7 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling):
def
synchronization_function
(
self
,
names
,
stencil
=
None
,
target
=
None
,
**
_
):
for
name
in
names
:
gpu
=
target
==
'
c
pu'
gpu
=
target
==
'
g
pu'
self
.
call_queue
.
append
(
Communication
(
self
.
_fields
[
name
],
stencil
,
gpu
))
super
().
synchronization_function
(
names
,
stencil
=
None
,
target
=
None
,
**
_
)
...
...
pystencils/kernelcreation.py
View file @
df7f69df
...
...
@@ -76,9 +76,9 @@ def create_kernel(assignments,
[0., 4., 4., 4., 0.],
[0., 0., 0., 0., 0.]])
"""
#save the original assignments
#
save the original assignments
assign
=
assignments
# ---- Normalizing parameters
split_groups
=
()
if
isinstance
(
assignments
,
AssignmentCollection
):
...
...
@@ -187,7 +187,7 @@ def create_indexed_kernel(assignments,
"""
assign
=
assignments
indF
=
index_fields
if
isinstance
(
assignments
,
Assignment
):
assignments
=
[
assignments
]
elif
isinstance
(
assignments
,
AssignmentCollection
):
...
...
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