Commit 1c4dfcf8 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'walberla_fluctuating' into 'master'

Magic block offset symbols for Walberla

Closes #2

See merge request pycodegen/lbmpy!3
parents 693f5bd1 d5b93299
......@@ -22,6 +22,8 @@ def add_fluctuations_to_collision_rule(collision_rule, temperature=None, varianc
method = collision_rule.method
if not variances:
variances = fluctuating_variance_from_temperature(method, temperature, c_s_sq)
if block_offsets == 'walberla':
block_offsets = tuple(TypedSymbol("block_offset_{}".format(i), np.uint32) for i in range(3))
rng_symbol_gen = random_symbol(collision_rule.subexpressions, seed,
rng_node=rng_node, dim=method.dim, offsets=block_offsets)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment