Skip to content
Snippets Groups Projects
Commit d40a7b91 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Check construction of DiagonalMatrix from FieldVector<T,1>

Since FieldVector<T,1> should be usable like T this should work.
Currently this fails due to an ambigous overload (see fs#1024).

[[Imported from SVN: r1572]]
parent 977add17
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment