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
35979bb2
Commit
35979bb2
authored
11 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
fix flow-around-sphere test case
parent
885e77d1
No related branches found
No related tags found
1 merge request
!169
Upgrade SymPy Version & Extend CI
Pipeline
#67384
canceled
11 months ago
Stage: pretest
Stage: test
Stage: docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/cumulantmethod/test_flow_around_sphere.py
+12
-1
12 additions, 1 deletion
tests/cumulantmethod/test_flow_around_sphere.py
with
12 additions
and
1 deletion
tests/cumulantmethod/test_flow_around_sphere.py
+
12
−
1
View file @
35979bb2
#%%
import
pytest
import
numpy
as
np
from
dataclasses
import
replace
...
...
@@ -58,7 +59,13 @@ def flow_around_sphere(stencil, galilean_correction, fourth_order_correction, L_
boundary_assignments
)
iter_slice
=
get_slice_before_ghost_layer
((
1
,)
+
(
0
,)
*
(
stencil
.
D
-
1
))
extrapolation_ast
=
create_kernel
(
boundary_assignments
,
config
=
CreateKernelConfig
(
iteration_slice
=
iter_slice
,
ghost_layers
=
1
,
target
=
target
))
boundary_assignments
,
config
=
CreateKernelConfig
(
iteration_slice
=
iter_slice
,
ghost_layers
=
1
,
target
=
target
,
skip_independence_check
=
True
)
)
return
extrapolation_ast
.
compile
()
dh
=
create_data_handling
(
channel_size
,
periodicity
=
False
,
default_layout
=
'
fzyx
'
,
default_target
=
target
)
...
...
@@ -154,3 +161,7 @@ def test_flow_around_sphere_long(stencil, galilean_correction, fourth_order_corr
if
fourth_order_correction
and
stencil
.
Q
!=
27
:
pytest
.
skip
(
"
Fourth-order correction only defined for D3Q27 stencil.
"
)
flow_around_sphere
(
stencil
,
galilean_correction
,
fourth_order_correction
,
20
,
3000
)
#%%
test_flow_around_sphere_short
(
Stencil
.
D2Q9
,
False
,
False
)
\ No newline at end of file
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