Skip to content

Commit c039b60

Browse files
committed
BUG: Corrected initialization of tolerances
1 parent ae208c3 commit c039b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numerics/rootSolvers/rootSolver/rootSolver.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void Foam::rootSolver::initialise(const scalarList& x) const
4242
tolerances_ = absTolerances_;
4343
forAll(x, i)
4444
{
45-
tolerances_[i] = max(relTolerances_[i]*mag(x[i]), tolerances_[i]);
45+
tolerances_[i] = max(relTolerances_[i]*mag(x[i]), absTolerances_[i]);
4646
}
4747
}
4848

0 commit comments

Comments
 (0)