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
a18d80af
Commit
a18d80af
authored
Feb 12, 2021
by
Markus Holzer
Browse files
Merge branch 'fluctuating' into 'master'
fix fluctuating LB See merge request
pycodegen/lbmpy!63
parents
b919e719
85ad9bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/fluctuatinglb.py
View file @
a18d80af
...
...
@@ -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