Skip to content
Snippets Groups Projects
Commit f6b5dc49 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix force scaling

parent 6ae9fa3f
Branches
No related merge requests found
Pipeline #38067 passed with stages
in 2 hours and 5 minutes
......@@ -187,7 +187,7 @@ class RefinementScaling:
self.add_scaling(viscosity_relaxation_rate, relaxation_rate_scaling)
def add_force_scaling(self, force_parameter):
self.add_scaling(force_parameter, lambda param, factor: param * factor)
self.add_scaling(force_parameter, lambda param, factor: param * (1 / factor))
def add_scaling(self, parameter, scaling_rule):
"""
......
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