Skip to content
Snippets Groups Projects
Commit c37b6482 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix factor_relaxation_rates

parent a31d7730
No related branches found
No related tags found
1 merge request!130Fixed extraction of common srt eq term
......@@ -43,7 +43,7 @@ def factor_relaxation_rates(cr: LbmCollisionRule):
"""
sh = cr.simplification_hints
assert 'relaxation_rates' in sh, "Needs simplification hint 'relaxation_rates': Sequence of relaxation rates"
if len(sh['relaxation_rates']) > 19: # heuristics, works well if there is a small number of relaxation rates
if len(set(sh['relaxation_rates'])) > 19: # heuristics, works well if there is a small number of relaxation rates
return cr
relaxation_rates = sp.Matrix(sh['relaxation_rates']).atoms(sp.Symbol)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment