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
9b169d14
Commit
9b169d14
authored
5 years ago
by
Martin Bauer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed problem with importorskip in tests that import walberla
parent
1a15233d
No related branches found
No related tags found
No related merge requests found
Pipeline
#21080
failed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lbmpy_tests/test_serial_scenarios.py
+4
-2
4 additions, 2 deletions
lbmpy_tests/test_serial_scenarios.py
lbmpy_tests/walberla_scenario_setup.py
+1
-1
1 addition, 1 deletion
lbmpy_tests/walberla_scenario_setup.py
with
5 additions
and
3 deletions
lbmpy_tests/test_serial_scenarios.py
+
4
−
2
View file @
9b169d14
...
@@ -133,8 +133,9 @@ def compare_lid_driven_cavity(optimization=MappingProxyType({}), action='Testing
...
@@ -133,8 +133,9 @@ def compare_lid_driven_cavity(optimization=MappingProxyType({}), action='Testing
name
=
name
+
"
_incompressible
"
name
=
name
+
"
_incompressible
"
try
:
try
:
import
waLBerla.field
from
lbmpy_tests.walberla_scenario_setup
import
create_lid_driven_cavity
as
run_lid_driven_cavity_walberla
from
lbmpy_tests.walberla_scenario_setup
import
create_lid_driven_cavity
as
run_lid_driven_cavity_walberla
except
Exception
:
except
ImportError
:
run_lid_driven_cavity_walberla
=
None
run_lid_driven_cavity_walberla
=
None
return
compare_scenario
(
run_ldc_lbmpy
,
run_lid_driven_cavity_walberla
,
optimization
,
action
,
name
,
plot
,
**
kwargs
)
return
compare_scenario
(
run_ldc_lbmpy
,
run_lid_driven_cavity_walberla
,
optimization
,
action
,
name
,
plot
,
**
kwargs
)
...
@@ -151,8 +152,9 @@ def compare_force_driven_channel(optimization=MappingProxyType({}), action='Test
...
@@ -151,8 +152,9 @@ def compare_force_driven_channel(optimization=MappingProxyType({}), action='Test
name
=
name
+
"
_incompressible
"
name
=
name
+
"
_incompressible
"
try
:
try
:
import
waLBerla.field
from
lbmpy_tests.walberla_scenario_setup
import
create_lid_driven_cavity
as
run_force_driven_channel_walberla
from
lbmpy_tests.walberla_scenario_setup
import
create_lid_driven_cavity
as
run_force_driven_channel_walberla
except
Exception
:
except
ImportError
:
run_force_driven_channel_walberla
=
None
run_force_driven_channel_walberla
=
None
return
compare_scenario
(
lbmpy_func
,
run_force_driven_channel_walberla
,
optimization
,
action
,
name
,
plot
,
**
kwargs
)
return
compare_scenario
(
lbmpy_func
,
run_force_driven_channel_walberla
,
optimization
,
action
,
name
,
plot
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
lbmpy_tests/walberla_scenario_setup.py
+
1
−
1
View file @
9b169d14
import
pytest
import
pytest
pytest
.
importorskip
(
'
waLBerla
'
)
pytest
.
importorskip
(
'
waLBerla
.field
'
)
import
waLBerla.field
as
field
import
waLBerla.field
as
field
from
waLBerla
import
createUniformBlockGrid
,
createUniformBufferedScheme
,
makeSlice
from
waLBerla
import
createUniformBlockGrid
,
createUniformBufferedScheme
,
makeSlice
...
...
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