Skip to content
Snippets Groups Projects

Fix: momentum density calculation

Merged Helen Schottenhamml requested to merge mr_bugfix_momentum_density_calculation into master
Viewing commit 6671ab51
Prev
Show latest version
1 file
+ 1
1
Preferences
Compare changes
+ 1
1
@@ -177,7 +177,7 @@ def test_momentum_density_shift(force_model):
src = dh.add_array('src', values_per_cell=len(stencil))
dh.fill('src', 0.0, ghost_layers=True)
method = create_lb_method(method="srt", compressible=True, force_model='guo', force=[1, 2])
method = create_lb_method(method="srt", compressible=True, force_model=force_model, force=[1, 2])
momentum_density_symbols = sp.symbols("md_:2")
cqc = method.conserved_quantity_computation