mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: harmonize matrix constructors (#1220)
- generalize identity matrix constructors for non-scalar types - add constructors using labelPair for the row/column sizing information. For a SquareMatrix, this provides an unambiguous parameter resolution. - reuse assignment operators STYLE: adjust matrix comments
This commit is contained in:
committed by
Andrew Heather
parent
2bdcd5b80d
commit
96d0a8f2af
@ -145,7 +145,7 @@ Foam::LUscalarMatrix::LUscalarMatrix
|
||||
else
|
||||
{
|
||||
label nCells = ldum.lduAddr().size();
|
||||
scalarSquareMatrix m(nCells, 0.0);
|
||||
scalarSquareMatrix m(nCells, Zero);
|
||||
transfer(m);
|
||||
convert(ldum, interfaceCoeffs, interfaces);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user