mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: LUscalarMatrix: incorrect debug control
This commit is contained in:
@ -142,11 +142,13 @@ Foam::LUscalarMatrix::LUscalarMatrix
|
|||||||
convert(ldum, interfaceCoeffs, interfaces);
|
convert(ldum, interfaceCoeffs, interfaces);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug && Pstream::master(comm_))
|
if (Pstream::master(comm_))
|
||||||
{
|
{
|
||||||
label nRows = n();
|
label nRows = n();
|
||||||
label nColumns = m();
|
label nColumns = m();
|
||||||
|
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
Pout<< "LUscalarMatrix : size:" << nRows << endl;
|
Pout<< "LUscalarMatrix : size:" << nRows << endl;
|
||||||
for (label rowI = 0; rowI < nRows; rowI++)
|
for (label rowI = 0; rowI < nRows; rowI++)
|
||||||
{
|
{
|
||||||
@ -159,7 +161,8 @@ Foam::LUscalarMatrix::LUscalarMatrix
|
|||||||
{
|
{
|
||||||
if (mag(row[columnI]) > SMALL)
|
if (mag(row[columnI]) > SMALL)
|
||||||
{
|
{
|
||||||
Pout<< ' ' << columnI << " (coeff:" << row[columnI] << ")";
|
Pout<< ' ' << columnI << " (coeff:" << row[columnI]
|
||||||
|
<< ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Pout<< endl;
|
Pout<< endl;
|
||||||
@ -168,12 +171,14 @@ Foam::LUscalarMatrix::LUscalarMatrix
|
|||||||
{
|
{
|
||||||
if (mag(row[columnI]) > SMALL)
|
if (mag(row[columnI]) > SMALL)
|
||||||
{
|
{
|
||||||
Pout<< ' ' << columnI << " (coeff:" << row[columnI] << ")";
|
Pout<< ' ' << columnI << " (coeff:" << row[columnI]
|
||||||
|
<< ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Pout<< endl;
|
Pout<< endl;
|
||||||
}
|
}
|
||||||
Pout<< endl;
|
Pout<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
pivotIndices_.setSize(n());
|
pivotIndices_.setSize(n());
|
||||||
LUDecompose(*this, pivotIndices_);
|
LUDecompose(*this, pivotIndices_);
|
||||||
|
|||||||
Reference in New Issue
Block a user