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
Markus Holzer
lbmpy
Commits
a22fd4a2
Commit
a22fd4a2
authored
3 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Fix numbers
parent
8f90b576
No related branches found
No related tags found
No related merge requests found
Pipeline
#41005
passed
3 years ago
Stage: pretest
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbmpy/methods/creationfunctions.py
+3
-3
3 additions, 3 deletions
lbmpy/methods/creationfunctions.py
with
3 additions
and
3 deletions
lbmpy/methods/creationfunctions.py
+
3
−
3
View file @
a22fd4a2
...
...
@@ -658,11 +658,11 @@ def _get_relaxation_info_dict(relaxation_rates, nested_moments, dim):
for
group
in
nested_moments
:
for
moment
in
group
:
if
get_order
(
moment
)
<=
1
:
result
[
moment
]
=
0.0
result
[
moment
]
=
sp
.
Integer
(
0
)
elif
is_shear_moment
(
moment
,
dim
):
result
[
moment
]
=
relaxation_rates
[
0
]
else
:
result
[
moment
]
=
1.0
result
[
moment
]
=
sp
.
Integer
(
1
)
# if relaxation rate for each moment is specified they are all used
if
len
(
relaxation_rates
)
==
number_of_moments
:
...
...
@@ -687,7 +687,7 @@ def _get_relaxation_info_dict(relaxation_rates, nested_moments, dim):
next_rr
=
False
for
moment
in
group
:
if
get_order
(
moment
)
<=
1
:
result
[
moment
]
=
0.0
result
[
moment
]
=
sp
.
Integer
(
0
)
elif
is_shear_moment
(
moment
,
dim
):
result
[
moment
]
=
shear_rr
elif
is_bulk_moment
(
moment
,
dim
):
...
...
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