Add null constructors to crAddressing and crMatrix
This commit is contained in:
parent
bf1d5b22a4
commit
c482887c99
4 changed files with 29 additions and 0 deletions
|
@ -65,6 +65,19 @@ void Foam::crAddressing::setRowSizes(const labelList& rowSizes)
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// Construct null
|
||||||
|
Foam::crAddressing::crAddressing()
|
||||||
|
:
|
||||||
|
refCount(),
|
||||||
|
nRows_(0),
|
||||||
|
nCols_(0),
|
||||||
|
rowStart_(1),
|
||||||
|
column_(0)
|
||||||
|
{
|
||||||
|
rowStart_[0] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Construct from given size
|
// Construct from given size
|
||||||
Foam::crAddressing::crAddressing
|
Foam::crAddressing::crAddressing
|
||||||
(
|
(
|
||||||
|
|
|
@ -69,6 +69,7 @@ class crAddressing
|
||||||
//- Column index array
|
//- Column index array
|
||||||
labelList column_;
|
labelList column_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Set row sizes
|
//- Set row sizes
|
||||||
|
@ -79,6 +80,9 @@ public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct null
|
||||||
|
crAddressing();
|
||||||
|
|
||||||
//- Construct given size. Column and coefficients set later
|
//- Construct given size. Column and coefficients set later
|
||||||
crAddressing
|
crAddressing
|
||||||
(
|
(
|
||||||
|
|
|
@ -36,6 +36,15 @@ Author
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// Construct null
|
||||||
|
Foam::crMatrix::crMatrix()
|
||||||
|
:
|
||||||
|
refCount(),
|
||||||
|
crAddr_(),
|
||||||
|
coeffs_()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Construct from addressing
|
// Construct from addressing
|
||||||
Foam::crMatrix::crMatrix(const crAddressing& addr)
|
Foam::crMatrix::crMatrix(const crAddressing& addr)
|
||||||
:
|
:
|
||||||
|
|
|
@ -67,6 +67,9 @@ public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct null
|
||||||
|
crMatrix();
|
||||||
|
|
||||||
//- Construct from addressing
|
//- Construct from addressing
|
||||||
crMatrix(const crAddressing& addr);
|
crMatrix(const crAddressing& addr);
|
||||||
|
|
||||||
|
|
Reference in a new issue