Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itischler
lbmpy
Commits
85ad9bfe
Commit
85ad9bfe
authored
Feb 11, 2021
by
Michael Kuron
Browse files
fix fluctuating LB
parent
b919e719
Changes
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/fluctuatinglb.py
View file @
85ad9bfe
...
...
@@ -28,7 +28,7 @@ def add_fluctuations_to_collision_rule(collision_rule, temperature=None, amplitu
if
not
method
.
is_weighted_orthogonal
:
raise
ValueError
(
"Fluctuations can only be added to weighted-orthogonal methods"
)
rng_symbol_gen
=
random_symbol
(
collision_rule
.
subexpressions
,
seed
,
rng_symbol_gen
=
random_symbol
(
collision_rule
.
subexpressions
,
seed
=
seed
,
rng_node
=
rng_node
,
dim
=
method
.
dim
,
offsets
=
block_offsets
)
correction
=
fluctuation_correction
(
method
,
rng_symbol_gen
,
amplitudes
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment