diff --git a/src/foam/matrices/scalarMatrices/scalarSquareMatrix.C b/src/foam/matrices/scalarMatrices/scalarSquareMatrix.C index 8af6d640f..4cc2b1d2d 100644 --- a/src/foam/matrices/scalarMatrices/scalarSquareMatrix.C +++ b/src/foam/matrices/scalarMatrices/scalarSquareMatrix.C @@ -47,7 +47,13 @@ Foam::scalarSquareMatrix::scalarSquareMatrix {} -Foam::scalarSquareMatrix::scalarSquareMatrix(const scalarSquareMatrix& matrix) +// Foam::scalarSquareMatrix::scalarSquareMatrix(const scalarSquareMatrix& matrix) +// : +// SquareMatrix(matrix) +// {} + + +Foam::scalarSquareMatrix::scalarSquareMatrix(const SquareMatrix& matrix) : SquareMatrix(matrix) {} diff --git a/src/foam/matrices/scalarMatrices/scalarSquareMatrix.H b/src/foam/matrices/scalarMatrices/scalarSquareMatrix.H index ab2e7680a..468d5d8ae 100644 --- a/src/foam/matrices/scalarMatrices/scalarSquareMatrix.H +++ b/src/foam/matrices/scalarMatrices/scalarSquareMatrix.H @@ -45,14 +45,13 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class scalarSquareMatrix Declaration + Class scalarSquareMatrix Declaration \*---------------------------------------------------------------------------*/ class scalarSquareMatrix : public SquareMatrix { - public: // Constructors @@ -66,8 +65,11 @@ public: //- Construct given size and coefficient value scalarSquareMatrix(const label, const scalar v); - //- Construct as copy - scalarSquareMatrix(const scalarSquareMatrix&); + // //- Construct as copy + // scalarSquareMatrix(const scalarSquareMatrix&); + + //- Construct as copy of base + scalarSquareMatrix(const SquareMatrix&); //- Construct from Istream scalarSquareMatrix(Istream&);