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
Markus Holzer
lbmpy
Commits
1d4b8285
Commit
1d4b8285
authored
May 06, 2021
by
Markus Holzer
Browse files
Add pull as default accessor
parent
c21c12b8
Pipeline
#31955
passed with stage
in 21 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/updatekernels.py
View file @
1d4b8285
...
...
@@ -56,7 +56,8 @@ def create_lbm_kernel(collision_rule, input_field, output_field, accessor):
def
create_stream_only_kernel
(
stencil
,
numpy_arr
=
None
,
src_field_name
=
"src"
,
dst_field_name
=
"dst"
,
generic_layout
=
'numpy'
,
generic_field_type
=
np
.
float64
,
accessor
=
None
):
generic_layout
=
'numpy'
,
generic_field_type
=
np
.
float64
,
accessor
=
StreamPullTwoFieldsAccessor
()):
"""Creates a stream kernel, without collision.
Args:
...
...
@@ -72,10 +73,6 @@ def create_stream_only_kernel(stencil, numpy_arr=None, src_field_name="src", dst
Returns:
AssignmentCollection of the stream only update rule
"""
if
accessor
is
None
:
accessor
=
StreamPullTwoFieldsAccessor
()
dim
=
len
(
stencil
[
0
])
if
numpy_arr
is
None
:
src
=
Field
.
create_generic
(
src_field_name
,
dim
,
index_shape
=
(
len
(
stencil
),),
...
...
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