Commit 9b169d14 authored by Martin Bauer's avatar Martin Bauer
Browse files

Fixed problem with importorskip in tests that import walberla

parent 1a15233d
Pipeline #21080 failed with stage
in 62 minutes and 47 seconds
......@@ -133,8 +133,9 @@ def compare_lid_driven_cavity(optimization=MappingProxyType({}), action='Testing
name = name + "_incompressible"
try:
import waLBerla.field
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
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
name = name + "_incompressible"
try:
import waLBerla.field
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
return compare_scenario(lbmpy_func, run_force_driven_channel_walberla, optimization, action, name, plot, **kwargs)
......
import pytest
pytest.importorskip('waLBerla')
pytest.importorskip('waLBerla.field')
import waLBerla.field as field
from waLBerla import createUniformBlockGrid, createUniformBufferedScheme, makeSlice
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment