Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frederik Hennig
lbmpy
Commits
3a19fa24
Commit
3a19fa24
authored
Nov 01, 2020
by
Frederik Hennig
Browse files
Merge branch 'master' into advanced_streaming_extensions
parents
342663c5
09078869
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3a19fa24
...
...
@@ -97,6 +97,7 @@ pycodegen-integration:
image
:
i10git.cs.fau.de:5005/pycodegen/pycodegen/full
stage
:
test
when
:
manual
allow_failure
:
false
script
:
# run lbmpy long test pipeline
-
export NUM_CORES=$(nproc --all)
...
...
lbmpy/boundaries/boundaryhandling.py
View file @
3a19fa24
...
...
@@ -175,7 +175,7 @@ class LbmWeightInfo(CustomCodeNode):
def
create_advanced_streaming_boundary_kernel
(
pdf_field
,
index_field
,
lb_method
,
boundary_functor
,
prev_timestep
=
Timestep
.
BOTH
,
streaming_pattern
=
'pull'
,
target
=
'cpu'
,
openmp
=
True
):
target
=
'cpu'
,
openmp
=
True
,
**
kernel_creation_args
):
index_dtype
=
index_field
.
dtype
.
numpy_dtype
.
fields
[
'dir'
][
0
]
offsets_dtype
=
index_field
.
dtype
.
numpy_dtype
.
fields
[
'x'
][
0
]
indexing
=
BetweenTimestepsIndexing
(
...
...
@@ -192,7 +192,7 @@ def create_advanced_streaming_boundary_kernel(pdf_field, index_field, lb_method,
elements
=
[
Assignment
(
dir_symbol
,
index_field
[
0
](
'dir'
))]
elements
+=
boundary_assignments
.
all_assignments
kernel
=
create_indexed_kernel
(
elements
,
[
index_field
],
target
=
target
,
cpu_openmp
=
openmp
)
kernel
=
create_indexed_kernel
(
elements
,
[
index_field
],
target
=
target
,
cpu_openmp
=
openmp
,
**
kernel_creation_args
)
# Code Elements ahead of the loop
index_arrs_node
=
indexing
.
create_code_node
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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