Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
lbmpy
Commits
a31551ca
Commit
a31551ca
authored
1 year ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
Fix two compatibility issues
parent
a2cf1e3e
No related branches found
No related tags found
1 merge request
!172
Changes for compatibility with pystencils 2.0
Pipeline
#67967
passed with warnings
1 year ago
Stage: pretest
Stage: test
Stage: prerelease
Stage: docs
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/advanced_streaming/test_advanced_streaming_noslip.py
+1
-1
1 addition, 1 deletion
tests/advanced_streaming/test_advanced_streaming_noslip.py
tests/benchmark/test_benchmark.py
+7
-1
7 additions, 1 deletion
tests/benchmark/test_benchmark.py
with
8 additions
and
2 deletions
tests/advanced_streaming/test_advanced_streaming_noslip.py
+
1
−
1
View file @
a31551ca
...
@@ -43,7 +43,7 @@ def test_advanced_streaming_noslip_single_cell(stencil, streaming_pattern, prev_
...
@@ -43,7 +43,7 @@ def test_advanced_streaming_noslip_single_cell(stencil, streaming_pattern, prev_
index_struct_dtype
=
numpy_data_type_for_boundary_object
(
noslip
,
stencil
.
D
)
index_struct_dtype
=
numpy_data_type_for_boundary_object
(
noslip
,
stencil
.
D
)
index_field
=
Field
(
'
indexVector
'
,
FieldType
.
INDEXED
,
index_struct_dtype
,
layout
=
[
0
],
index_field
=
Field
(
'
indexVector
'
,
FieldType
.
INDEXED
,
index_struct_dtype
,
layout
=
[
0
],
shape
=
(
TypedSymbol
(
"
indexVectorSize
"
,
np
.
int
64
),
1
),
strides
=
(
1
,
1
))
shape
=
(
TypedSymbol
(
"
indexVectorSize
"
,
np
.
int
32
),
1
),
strides
=
(
1
,
1
))
index_vector
=
np
.
array
([
pos
+
(
d
,)
for
d
in
range
(
stencil
.
Q
)],
dtype
=
index_struct_dtype
)
index_vector
=
np
.
array
([
pos
+
(
d
,)
for
d
in
range
(
stencil
.
Q
)],
dtype
=
index_struct_dtype
)
ast
=
create_lattice_boltzmann_boundary_kernel
(
pdf_field
,
ast
=
create_lattice_boltzmann_boundary_kernel
(
pdf_field
,
...
...
This diff is collapsed.
Click to expand it.
tests/benchmark/test_benchmark.py
+
7
−
1
View file @
a31551ca
...
@@ -4,7 +4,13 @@ import numpy as np
...
@@ -4,7 +4,13 @@ import numpy as np
import
sympy
as
sp
import
sympy
as
sp
from
lbmpy.scenarios
import
create_lid_driven_cavity
from
lbmpy.scenarios
import
create_lid_driven_cavity
from
pystencils.cpu.cpujit
import
add_or_change_compiler_flags
from
lbmpy._compat
import
IS_PYSTENCILS_2
if
IS_PYSTENCILS_2
:
from
pystencils.backend.jit.legacy_cpu
import
add_or_change_compiler_flags
else
:
from
pystencils.cpu.cpujit
import
add_or_change_compiler_flags
from
pystencils.runhelper
import
ParameterStudy
from
pystencils.runhelper
import
ParameterStudy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment