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
434885fc
Commit
434885fc
authored
4 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Clear cache in szenario creation loop
parent
96b6f4bc
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!35
Add integration pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbmpy_tests/test_split_optimization.py
+2
-0
2 additions, 0 deletions
lbmpy_tests/test_split_optimization.py
with
2 additions
and
0 deletions
lbmpy_tests/test_split_optimization.py
+
2
−
0
View file @
434885fc
...
@@ -4,6 +4,7 @@ import pytest
...
@@ -4,6 +4,7 @@ import pytest
from
lbmpy.creationfunctions
import
create_lb_ast
from
lbmpy.creationfunctions
import
create_lb_ast
from
lbmpy.scenarios
import
create_lid_driven_cavity
from
lbmpy.scenarios
import
create_lid_driven_cavity
from
pystencils.sympyextensions
import
count_operations_in_ast
from
pystencils.sympyextensions
import
count_operations_in_ast
from
sympy.core.cache
import
clear_cache
def
test_split_number_of_operations
():
def
test_split_number_of_operations
():
...
@@ -35,6 +36,7 @@ def test_equivalence():
...
@@ -35,6 +36,7 @@ def test_equivalence():
for
compressible
in
(
True
,
False
):
for
compressible
in
(
True
,
False
):
for
method
in
(
'
srt
'
,
'
mrt
'
):
for
method
in
(
'
srt
'
,
'
mrt
'
):
for
force
in
((
0
,
0
,
0
),
(
1e-6
,
1e-7
,
2e-6
)):
for
force
in
((
0
,
0
,
0
),
(
1e-6
,
1e-7
,
2e-6
)):
clear_cache
()
common_params
=
{
'
domain_size
'
:
(
20
,
30
)
if
stencil
.
startswith
(
'
D2
'
)
else
(
10
,
13
,
7
),
common_params
=
{
'
domain_size
'
:
(
20
,
30
)
if
stencil
.
startswith
(
'
D2
'
)
else
(
10
,
13
,
7
),
'
stencil
'
:
stencil
,
'
stencil
'
:
stencil
,
'
method
'
:
method
,
'
method
'
:
method
,
...
...
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