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
RudolfWeeber
lbmpy
Compare revisions
master to csebug
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
RudolfWeeber/lbmpy
Select target project
No results found
csebug
Select Git revision
Swap
Target
pycodegen/lbmpy
Select target project
ravi.k.ayyala/lbmpy
brendan-waters/lbmpy
anirudh.jonnalagadda/lbmpy
jbadwaik/lbmpy
alexander.reinauer/lbmpy
itischler/lbmpy
he66coqe/lbmpy
ev81oxyl/lbmpy
Bindgen/lbmpy
da15siwa/lbmpy
holzer/lbmpy
RudolfWeeber/lbmpy
pycodegen/lbmpy
13 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Disable cse_global on create_lb_collision_rule for Sympy < 1.2
· 46dfc3f2
Michael Kuron
authored
5 years ago
46dfc3f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbmpy/creationfunctions.py
+7
-1
7 additions, 1 deletion
lbmpy/creationfunctions.py
with
7 additions
and
1 deletion
lbmpy/creationfunctions.py
View file @
46dfc3f2
...
...
@@ -349,7 +349,13 @@ def create_lb_collision_rule(lb_method=None, optimization={}, **kwargs):
collision_rule
=
cse_in_opposing_directions
(
collision_rule
)
if
cse_global
:
from
pystencils.simp
import
sympy_cse
collision_rule
=
sympy_cse
(
collision_rule
)
sp_ver
=
sp
.
__version__
.
split
(
'
.
'
)
if
int
(
sp_ver
[
0
])
>
1
or
int
(
sp_ver
[
1
])
>
1
:
collision_rule
=
sympy_cse
(
collision_rule
)
else
:
import
warnings
warnings
.
warn
(
'
SymPy versions below 1.2 may perform common subexpression elimination incorrectly on LB
'
'
collision rules. Ignoring cse_global.
'
)
if
params
[
'
output
'
]
and
params
[
'
kernel_type
'
]
==
'
stream_pull_collide
'
:
cqc
=
lb_method
.
conserved_quantity_computation
...
...
This diff is collapsed.
Click to expand it.