<ol>
+<li> Changed: TimerOutput no longer assumes that sections are not nested
+when outputting percentage and total run time.
+<br>
+(Timo Heister, 2013/3/28)
+</li>
+
<li> New: MPI_InitFinalize can also initialize PETSc/Slepc when
not compiling with MPI. This is now the preferred way to initialize
MPI/PETSc/Slepc in all cases.
{
double total_wall_time = timer_all.wall_time();
- // check that the sum of all times is
- // less or equal than the total
- // time. otherwise, we might have
- // generated a lot of overhead in this
- // function.
- double check_time = 0.;
- for (std::map<std::string, Section>::const_iterator
- i = sections.begin(); i!=sections.end(); ++i)
- check_time += i->second.total_wall_time;
-
- if (check_time > total_wall_time)
- total_wall_time = check_time;
-
// now generate a nice table
out_stream << "\n\n"
<< "+---------------------------------------------+------------"
<< "+---------------------------------+-----------+"
<< "------------+------------+\n"
<< std::endl;
-
- if (check_time > total_wall_time)
- out_stream << std::endl
- << "Note: The sum of counted times is larger than the total time.\n"
- << "(Timer function may have introduced too much overhead, or different\n"
- << "section timers may have run at the same time.)" << std::endl;
}
// restore previous precision and width