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
pystencils
Commits
424a20ea
Commit
424a20ea
authored
Jun 07, 2021
by
Markus Holzer
Browse files
Fix linter
parent
1065a1ee
Pipeline
#32520
passed with stage
in 53 minutes and 40 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/boundaries/boundaryhandling.py
View file @
424a20ea
...
...
@@ -444,7 +444,6 @@ class BoundaryOffsetInfo(CustomCodeNode):
def
create_boundary_kernel
(
field
,
index_field
,
stencil
,
boundary_functor
,
target
=
'cpu'
,
**
kernel_creation_args
):
elements
=
[
BoundaryOffsetInfo
(
stencil
)]
index_arr_dtype
=
index_field
.
dtype
.
numpy_dtype
dir_symbol
=
TypedSymbol
(
"dir"
,
np
.
int64
)
elements
+=
[
Assignment
(
dir_symbol
,
index_field
[
0
](
'dir'
))]
elements
+=
boundary_functor
(
field
,
direction_symbol
=
dir_symbol
,
index_field
=
index_field
)
...
...
pystencils/cpu/kernelcreation.py
View file @
424a20ea
...
...
@@ -7,7 +7,7 @@ import pystencils.astnodes as ast
from
pystencils.assignment
import
Assignment
from
pystencils.astnodes
import
Block
,
KernelFunction
,
LoopOverCoordinate
,
SympyAssignment
from
pystencils.cpu.cpujit
import
make_python_function
from
pystencils.data_types
import
BasicType
,
StructType
,
TypedSymbol
,
create_type
from
pystencils.data_types
import
StructType
,
TypedSymbol
,
create_type
from
pystencils.field
import
Field
,
FieldType
from
pystencils.transformations
import
(
add_types
,
filtered_tree_iteration
,
get_base_buffer_index
,
get_optimal_loop_ordering
,
...
...
pystencils/gpucuda/kernelcreation.py
View file @
424a20ea
import
numpy
as
np
from
pystencils.astnodes
import
Block
,
KernelFunction
,
LoopOverCoordinate
,
SympyAssignment
from
pystencils.data_types
import
BasicType
,
StructType
,
TypedSymbol
from
pystencils.data_types
import
StructType
,
TypedSymbol
from
pystencils.field
import
Field
,
FieldType
from
pystencils.gpucuda.cudajit
import
make_python_function
from
pystencils.gpucuda.indexing
import
BlockIndexing
...
...
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