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 * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct null
|
||||
Foam::crAddressing::crAddressing()
|
||||
:
|
||||
refCount(),
|
||||
nRows_(0),
|
||||
nCols_(0),
|
||||
rowStart_(1),
|
||||
column_(0)
|
||||
{
|
||||
rowStart_[0] = 1;
|
||||
}
|
||||
|
||||
|
||||
// Construct from given size
|
||||
Foam::crAddressing::crAddressing
|
||||
(
|
||||
|
|
|
@ -69,6 +69,7 @@ class crAddressing
|
|||
//- Column index array
|
||||
labelList column_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Set row sizes
|
||||
|
@ -79,6 +80,9 @@ public:
|
|||
|
||||
// Constructors
|
||||
|
||||
//- Construct null
|
||||
crAddressing();
|
||||
|
||||
//- Construct given size. Column and coefficients set later
|
||||
crAddressing
|
||||
(
|
||||
|
|
|
@ -36,6 +36,15 @@ Author
|
|||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct null
|
||||
Foam::crMatrix::crMatrix()
|
||||
:
|
||||
refCount(),
|
||||
crAddr_(),
|
||||
coeffs_()
|
||||
{}
|
||||
|
||||
|
||||
// Construct from addressing
|
||||
Foam::crMatrix::crMatrix(const crAddressing& addr)
|
||||
:
|
||||
|
|
|
@ -67,6 +67,9 @@ public:
|
|||
|
||||
// Constructors
|
||||
|
||||
//- Construct null
|
||||
crMatrix();
|
||||
|
||||
//- Construct from addressing
|
||||
crMatrix(const crAddressing& addr);
|
||||
|
||||
|
|
Reference in a new issue