]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Say which section can't be entered in an assertion.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 28 Sep 2012 15:33:06 +0000 (15:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 28 Sep 2012 15:33:06 +0000 (15:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@26846 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/timer.cc

index f6a13b2f57c420d40113992cdc69d1818bcbe420..04a4211eaa092f6aefb4e7b0d1327fb7b2882ee5 100644 (file)
@@ -342,7 +342,8 @@ TimerOutput::enter_subsection (const std::string &section_name)
 
   Assert (std::find (active_sections.begin(), active_sections.end(),
                      section_name) == active_sections.end(),
-          ExcMessage ("Cannot enter the already active section."));
+          ExcMessage (std::string("Cannot enter the already active section <")
+                     + section_name + ">."));
 
   if (sections.find (section_name) == sections.end())
     {

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.