Skip to content
Snippets Groups Projects

BUG: resolve issue #1313 | stabilise SVDinv

Closed Kutalmış Berçin requested to merge bugfix-GL1313 into develop
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -329,6 +329,14 @@ Foam::scalarRectangularMatrix Foam::SVDinv
scalar minCondition
)
{
if (minCondition < SMALL)
{
WarningInFunction
<< "Input cutoff for small singular values = " << minCondition
<< " may be destabilising, hence reset to SMALL" << nl;
minCondition = max(minCondition, SMALL);
}
SVD svd(A, minCondition);
return svd.VSinvUt();
}
Loading