From d2a25a8d185809a88e69f0203ddc3c82aa6ae67b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 7 Mar 2011 15:00:17 +0000 Subject: [PATCH] Fix a bug in FE_Nothing::get_name(). git-svn-id: https://svn.dealii.org/trunk@23464 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.h | 8 ++++++++ deal.II/source/fe/fe_nothing.cc | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index 74ece855af..441153d3d8 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -84,6 +84,14 @@ should be fixed now.

Specific improvements

    +
  1. Fixed: Objects of type FE_Nothing could be generated with multiple vector components +by passing an argument to the constructor. Yet, the FE_Nothing::get_name() function +always just returned the string FE_Nothing@() independently of the +number of components. This is now fixed. +
    +(WB, 2011/03/07) +
  2. +
  3. Fixed: PETScWrappers:MPI:SparseMatrix and apply_boundary_values() produced an error in debug mode about non-existant SparsityPattern entries. Reason: clear_rows() also eliminated the whole row in the PETSc-internal SparsityPattern, which resulted in an error in the next assembly process.
    (Timo Heister, 2011/02/23) diff --git a/deal.II/source/fe/fe_nothing.cc b/deal.II/source/fe/fe_nothing.cc index 076733745e..71d13e74c9 100644 --- a/deal.II/source/fe/fe_nothing.cc +++ b/deal.II/source/fe/fe_nothing.cc @@ -50,7 +50,10 @@ std::string FE_Nothing::get_name () const { std::ostringstream namebuf; - namebuf << "FE_Nothing<" << dim << ">()"; + namebuf << "FE_Nothing<" << dim << ">("; + if (this->n_components() > 1) + namebuf << this->n_components(); + namebuf << ")"; return namebuf.str(); } -- 2.39.5