diff --git a/dune/istl/test/matrixtest.cc b/dune/istl/test/matrixtest.cc index f9105a18070e7683094bb7118b2f5d634ec30ed8..e71743cf7960cb0788537ed09351700fd8a67b95 100644 --- a/dune/istl/test/matrixtest.cc +++ b/dune/istl/test/matrixtest.cc @@ -433,10 +433,18 @@ int main() // Test the DiagonalMatrix class // //////////////////////////////////////////////////////////////////////// - DiagonalMatrix<double,4> dMatrix; - dMatrix = 3.1459; + FieldVector<double,1> dMatrixConstructFrom; + dMatrixConstructFrom = 3.1459; - testMatrix(dMatrix, fvX, fvY); + DiagonalMatrix<double,4> dMatrix1; + dMatrix1 = 3.1459; + testMatrix(dMatrix1, fvX, fvY); + + DiagonalMatrix<double,4> dMatrix2(3.1459); + testMatrix(dMatrix2, fvX, fvY); + + DiagonalMatrix<double,4> dMatrix3(dMatrixConstructFrom); + testMatrix(dMatrix3, fvX, fvY); // //////////////////////////////////////////////////////////////////////// // Test the ScaledIdentityMatrix class