From: Guido Kanschat Date: Mon, 5 Feb 2001 09:57:34 +0000 (+0000) Subject: allow printing of empty matrices X-Git-Tag: v8.0.0~19752 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=129259e87e1e374daf570353627e635e08571668;p=dealii.git allow printing of empty matrices git-svn-id: https://svn.dealii.org/trunk@3853 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index 58bf9e8eca..784127b95f 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -1357,7 +1357,8 @@ FullMatrix::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