From: bangerth Date: Fri, 11 Aug 2006 13:17:51 +0000 (+0000) Subject: Make output_matrix work for empty matrices as well X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4227c2fc4bccd16bf4e4bcbc13c77dd56edc8075;p=dealii-svn.git Make output_matrix work for empty matrices as well git-svn-id: https://svn.dealii.org/trunk@13658 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/fe_tools_common.cc b/tests/bits/fe_tools_common.cc index 5986d90da8..8c384d1337 100644 --- a/tests/bits/fe_tools_common.cc +++ b/tests/bits/fe_tools_common.cc @@ -56,6 +56,12 @@ extern std::string output_file_name; void output_matrix (const FullMatrix &m) { + if ((m.m() == 0) || (m.n() == 0)) + { + deallog << "(Empty matrix)" << std::endl; + return; + } + deallog << m.l1_norm() << ' ' << m.linfty_norm() << std::endl; if (m.m() == m.n())