]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make IdentityMatrix constructor explicit 6857/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 28 Jun 2018 14:08:03 +0000 (16:08 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 28 Jun 2018 23:37:16 +0000 (01:37 +0200)
tests/lac/identity_matrix_07.cc
tests/lac/identity_matrix_07.output

index d4336f84db3182360a1fcce268d344b3e896e4d1..2de2f96f972108575387d487106f26d743523e8e 100644 (file)
@@ -15,7 +15,8 @@
 
 
 // Check that clearing a FullMatrix<Number> using a number type convertible to
-// Number is not ambiguous.
+// Number is not ambiguous. Previously, IdentityMatrix(size_type) was detected
+// as viable overload.
 
 #include <deal.II/lac/full_matrix.h>
 #include <deal.II/lac/identity_matrix.h>
@@ -27,7 +28,7 @@ int
 main()
 {
   initlog();
-  FullMatrix<std::complex<double>> matrix1;
+  FullMatrix<std::complex<double>> matrix;
   matrix = 0.;
 
   deallog << "OK" << std::endl;
index 29bcfce3a30332fc74b5a049b194268a528f9f7d..0fd8fc12f0b442283edd8868867114c242b04d11 100644 (file)
@@ -1,9 +1,2 @@
 
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
-DEAL:: 1. 2. 3. 4.
+DEAL::OK

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.