From 4227c2fc4bccd16bf4e4bcbc13c77dd56edc8075 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 11 Aug 2006 13:17:51 +0000 Subject: [PATCH] Make output_matrix work for empty matrices as well git-svn-id: https://svn.dealii.org/trunk@13658 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/fe_tools_common.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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()) -- 2.39.5