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
9bef11a1
Commit
9bef11a1
authored
1 year ago
by
Frederik Hennig
Committed by
Markus Holzer
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix Ubuntu CI
parent
dc1a8009
No related branches found
No related tags found
1 merge request
!161
Fix Ubuntu CI
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
lbmpy/__init__.py
+49
-18
49 additions, 18 deletions
lbmpy/__init__.py
lbmpy/advanced_streaming/communication.py
+1
-1
1 addition, 1 deletion
lbmpy/advanced_streaming/communication.py
lbmpy/oldroydb.py
+3
-3
3 additions, 3 deletions
lbmpy/oldroydb.py
with
54 additions
and
23 deletions
.gitlab-ci.yml
+
1
−
1
View file @
9bef11a1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lbmpy/__init__.py
+
49
−
18
View file @
9bef11a1
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
This diff is collapsed.
Click to expand it.
lbmpy/advanced_streaming/communication.py
+
1
−
1
View file @
9bef11a1
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
...
...
This diff is collapsed.
Click to expand it.
lbmpy/oldroydb.py
+
3
−
3
View file @
9bef11a1
...
@@ -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
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