ScaleOnTheFly: Make scale factor always positive
This commit is contained in:
@@ -235,6 +235,8 @@ ScaleOnTheFlyResult ScaleOnTheFly::Scale(std::vector<Reflection> &reflections,
|
||||
}
|
||||
result.succesful = true;
|
||||
|
||||
problem.SetParameterLowerBound(&result.G, 0, 0.0);
|
||||
|
||||
if (s.GetRefineB()) {
|
||||
problem.SetParameterLowerBound(&result.B, 0, s.GetMinB());
|
||||
problem.SetParameterUpperBound(&result.B, 0, s.GetMaxB());
|
||||
|
||||
Reference in New Issue
Block a user