Add null constructors to crAddressing and crMatrix

This commit is contained in:
Hrvoje Jasak 2017-06-06 18:25:41 +01:00
parent bf1d5b22a4
commit c482887c99
4 changed files with 29 additions and 0 deletions

View file

@ -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
(

View file

@ -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
(

View file

@ -36,6 +36,15 @@ Author
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct null
Foam::crMatrix::crMatrix()
:
refCount(),
crAddr_(),
coeffs_()
{}
// Construct from addressing
Foam::crMatrix::crMatrix(const crAddressing& addr)
:

View file

@ -67,6 +67,9 @@ public:
// Constructors
//- Construct null
crMatrix();
//- Construct from addressing
crMatrix(const crAddressing& addr);