Commit 1d4b8285 authored by Markus Holzer's avatar Markus Holzer
Browse files

Add pull as default accessor

parent c21c12b8
Pipeline #31955 passed with stage
in 21 minutes and 17 seconds
......@@ -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,
"""Creates a stream kernel, without collision.
......@@ -72,10 +73,6 @@ def create_stream_only_kernel(stencil, numpy_arr=None, src_field_name="src", dst
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),),
Supports Markdown
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