From 5824f455dee13e15f15ab00545d1195bd663ed11 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 5 Feb 2001 09:57:34 +0000 Subject: [PATCH] allow printing of empty matrices git-svn-id: https://svn.dealii.org/trunk@3853 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/full_matrix.templates.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5