template <int dim>
void check (bool local)
{
- deallog << "Dimension " << dim << std::endl;
+ deallog << "Start mesh" << std::endl;
Triangulation<dim> tr(Triangulation<dim>::maximum_smoothing);
GridGenerator::hyper_cube(tr);
deallog << "Levels " << tr.n_levels() << " Cells "<< tr.n_cells()
<< std::endl
- << " active " << tr.n_active_cells()
+ << "active " << tr.n_active_cells()
<< " memory " << tr.memory_consumption()/1.e6
<< std::endl;
deallog.log_time_differences(true);
deallog.attach(out);
deallog.push("local");
+ deallog.push("2d");
check<2>(true);
+ deallog.pop();
+ deallog.push("3d");
check<3>(true);
deallog.pop();
+ deallog.pop();
deallog.push("global");
+ deallog.push("2d");
check<2>(false);
+ deallog.pop();
+ deallog.push("3d");
check<3>(false);
deallog.pop();
+ deallog.pop();
}
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