]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug in FE_Nothing::get_name().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 7 Mar 2011 15:00:17 +0000 (15:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 7 Mar 2011 15:00:17 +0000 (15:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@23464 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/source/fe/fe_nothing.cc

index 74ece855af7c389b1e96d5ecd3676b617f662a7d..441153d3d834b9ce9df8ac22cceecc8ade9c8f78 100644 (file)
@@ -84,6 +84,14 @@ should be fixed now.
 <h3>Specific improvements</h3>
 
 <ol>
+<li> 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 <code>FE_Nothing@<dim@>()</code> independently of the
+number of components. This is now fixed.
+<br>
+(WB, 2011/03/07)
+</li>
+
 <li> 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.
 <br>
 (Timo Heister, 2011/02/23)
index 076733745e197cbe1d53be749e07dddc6cc146b6..71d13e74c9d88ee315656629d0d67b90f3295011 100644 (file)
@@ -50,7 +50,10 @@ std::string
 FE_Nothing<dim>::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();
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.