Skip to content
Snippets Groups Projects
Commit e4fa22cf authored by Martin Bauer's avatar Martin Bauer
Browse files

Better split kernels for smagorinsky model

parent 64290482
No related branches found
No related tags found
No related merge requests found
......@@ -244,6 +244,8 @@ def create_lb_update_rule(collision_rule=None, optimization={}, **kwargs):
smagorinsky_constant = 0.12 if params['smagorinsky'] is True else params['smagorinsky']
collision_rule = add_smagorinsky_model(collision_rule, smagorinsky_constant,
omega_output_field=params['omega_output_field'])
if 'split_groups' in collision_rule.simplification_hints:
collision_rule.simplification_hints['split_groups'][0].append(sp.Symbol("smagorinsky_omega"))
field_data_type = 'float64' if opt_params['double_precision'] else 'float32'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment