Commit 2eda907a authored by Martin Bauer's avatar Martin Bauer
Browse files

Test for smagorinsky output field

parent a11fc764
Pipeline #16430 passed with stage
in 41 seconds
......@@ -61,3 +61,16 @@ class WalberlaLbmpyCodegenTest(unittest.TestCase):
lb_method = create_lb_method(stencil='D3Q19', method='srt', relaxation_rates=[omega], compressible=False)
generate_lattice_model(ctx, 'Model', lb_method, update_rule_params={'compressible': False})
assert 'static const bool compressible = false;' in ctx.files['Model.h']
def test_output_field():
with ManualCodeGenerationContext(openmp=True, double_accuracy=True) as ctx:
omega_field = ps.fields("omega_out: [3D]", layout='fzyx')
parameters = {
'stencil': 'D3Q19',
'method': 'trt',
'smagorinsky': True,
'omega_output_field': omega_field,
lb_method = create_lb_method(**parameters)
generate_lattice_model(ctx, 'Model', lb_method, update_rule_params=parameters)
Supports Markdown
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