Skip to content
Snippets Groups Projects
Commit 9bef11a1 authored by Frederik Hennig's avatar Frederik Hennig Committed by Markus Holzer
Browse files

Fix Ubuntu CI

parent dc1a8009
No related branches found
No related tags found
1 merge request!161Fix Ubuntu CI
...@@ -163,7 +163,7 @@ ubuntu: ...@@ -163,7 +163,7 @@ ubuntu:
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- env - env
- pip3 list - pip3 list
- pytest-3 -v -n $NUM_CORES -m "not longrun" --junitxml=report.xml - pytest -v -n $NUM_CORES -m "not longrun" --junitxml=report.xml
tags: tags:
- docker - docker
- cuda11 - cuda11
......
from .creationfunctions import create_lb_ast, create_lb_collision_rule, create_lb_function,\ from .creationfunctions import (
create_lb_method, create_lb_update_rule, LBMConfig, LBMOptimisation create_lb_ast,
create_lb_collision_rule,
create_lb_function,
create_lb_method,
create_lb_update_rule,
LBMConfig,
LBMOptimisation,
)
from .enums import Stencil, Method, ForceModel, CollisionSpace from .enums import Stencil, Method, ForceModel, CollisionSpace
from .lbstep import LatticeBoltzmannStep from .lbstep import LatticeBoltzmannStep
from .macroscopic_value_kernels import pdf_initialization_assignments, macroscopic_values_getter,\ from .macroscopic_value_kernels import (
compile_macroscopic_values_getter, compile_macroscopic_values_setter, create_advanced_velocity_setter_collision_rule pdf_initialization_assignments,
macroscopic_values_getter,
compile_macroscopic_values_getter,
compile_macroscopic_values_setter,
create_advanced_velocity_setter_collision_rule,
)
from .maxwellian_equilibrium import get_weights from .maxwellian_equilibrium import get_weights
from .relaxationrates import relaxation_rate_from_lattice_viscosity, lattice_viscosity_from_relaxation_rate,\ from .relaxationrates import (
relaxation_rate_from_magic_number relaxation_rate_from_lattice_viscosity,
lattice_viscosity_from_relaxation_rate,
relaxation_rate_from_magic_number,
)
from .scenarios import create_lid_driven_cavity, create_fully_periodic_flow from .scenarios import create_lid_driven_cavity, create_fully_periodic_flow
from .stencils import LBStencil from .stencils import LBStencil
__all__ = ['create_lb_ast', 'create_lb_collision_rule', 'create_lb_function', 'create_lb_method', __all__ = [
'create_lb_update_rule', 'LBMConfig', 'LBMOptimisation', "create_lb_ast",
'Stencil', 'Method', 'ForceModel', 'CollisionSpace', "create_lb_collision_rule",
'LatticeBoltzmannStep', "create_lb_function",
'pdf_initialization_assignments', 'macroscopic_values_getter', 'compile_macroscopic_values_getter', "create_lb_method",
'compile_macroscopic_values_setter', 'create_advanced_velocity_setter_collision_rule', "create_lb_update_rule",
'get_weights', "LBMConfig",
'relaxation_rate_from_lattice_viscosity', 'lattice_viscosity_from_relaxation_rate', "LBMOptimisation",
'relaxation_rate_from_magic_number', "Stencil",
'create_lid_driven_cavity', 'create_fully_periodic_flow', "Method",
'LBStencil'] "ForceModel",
"CollisionSpace",
"LatticeBoltzmannStep",
"pdf_initialization_assignments",
"macroscopic_values_getter",
"compile_macroscopic_values_getter",
"compile_macroscopic_values_setter",
"create_advanced_velocity_setter_collision_rule",
"get_weights",
"relaxation_rate_from_lattice_viscosity",
"lattice_viscosity_from_relaxation_rate",
"relaxation_rate_from_magic_number",
"create_lid_driven_cavity",
"create_fully_periodic_flow",
"LBStencil",
]
from ._version import get_versions from ._version import get_versions
__version__ = get_versions()['version']
__version__ = get_versions()["version"]
del get_versions del get_versions
import itertools import itertools
from pystencils import CreateKernelConfig, Field, Assignment, AssignmentCollection from pystencils import CreateKernelConfig, Field, Assignment, AssignmentCollection
from pystencils.slicing import shift_slice, get_slice_before_ghost_layer, normalize_slice from pystencils.slicing import shift_slice, get_slice_before_ghost_layer, normalize_slice
from lbmpy.advanced_streaming.utility import is_inplace, get_accessor, numeric_index,\ from lbmpy.advanced_streaming.utility import is_inplace, get_accessor, numeric_index, \
Timestep, get_timesteps, numeric_offsets Timestep, get_timesteps, numeric_offsets
from pystencils.datahandling import SerialDataHandling from pystencils.datahandling import SerialDataHandling
from pystencils.enums import Target from pystencils.enums import Target
......
...@@ -118,7 +118,7 @@ class Flux(Boundary): ...@@ -118,7 +118,7 @@ class Flux(Boundary):
return hash((Flux, self.stencil, self.value)) return hash((Flux, self.stencil, self.value))
def __eq__(self, other): def __eq__(self, other):
return type(other) == Flux and other.stencil == self.stencil and self.value == other.value return type(other) is Flux and other.stencil == self.stencil and self.value == other.value
class Extrapolation(Boundary): class Extrapolation(Boundary):
...@@ -169,7 +169,7 @@ class Extrapolation(Boundary): ...@@ -169,7 +169,7 @@ class Extrapolation(Boundary):
return hash((Extrapolation, self.stencil, self.src, self.weights)) return hash((Extrapolation, self.stencil, self.src, self.weights))
def __eq__(self, other): def __eq__(self, other):
return type(other) == Extrapolation and other.stencil == self.stencil and \ return type(other) is Extrapolation and other.stencil == self.stencil and \
other.src == self.src and other.weights == self.weights other.src == self.src and other.weights == self.weights
...@@ -205,5 +205,5 @@ class ForceOnBoundary(Boundary): ...@@ -205,5 +205,5 @@ class ForceOnBoundary(Boundary):
return hash((ForceOnBoundary, self.stencil, self.force_field)) return hash((ForceOnBoundary, self.stencil, self.force_field))
def __eq__(self, other): def __eq__(self, other):
return type(other) == ForceOnBoundary and other.stencil == self.stencil and \ return type(other) is ForceOnBoundary and other.stencil == self.stencil and \
other.force_field == self.force_field other.force_field == self.force_field
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment