]> https://gitweb.dealii.org/ - dealii.git/commitdiff
allow printing of empty matrices
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 5 Feb 2001 09:57:34 +0000 (09:57 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 5 Feb 2001 09:57:34 +0000 (09:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@3853 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index 58bf9e8eca0cd6ea87841749f0f81ff6922df7b1..784127b95f318e15f83e4266e6e5dc5a9dcb2b99 100644 (file)
@@ -1357,7 +1357,8 @@ FullMatrix<number>::print_formatted (std::ostream       &out,
                                     const char         *zero_string,
                                     const double        denominator) const
 {
-  Assert (val != 0, ExcEmptyMatrix());
+  Assert ((val != 0) || (dim_range+dim_image==0),
+         ExcInternalError());
   
                                   // set output format, but store old
                                   // state

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.