12 #define BOOST_ALLOW_DEPRECATED_HEADERS
22 MainOutputTable::format()
24 set_precision(
"L2", 2);
25 set_precision(
"H1", 2);
27 set_scientific(
"L2",
true);
28 set_scientific(
"H1",
true);
31 evaluate_convergence_rates(
32 "L2",
"ncells", ConvergenceTable::reduction_rate_log2, dimensions);
33 evaluate_convergence_rates(
34 "H1",
"ncells", ConvergenceTable::reduction_rate_log2, dimensions);
36 set_tex_caption(
"p",
"p");
37 set_tex_caption(
"r",
"r");
38 set_tex_caption(
"ncells",
"nr. cells");
39 set_tex_caption(
"ndofs",
"nr. dofs");
40 set_tex_caption(
"L2",
"L2 norm");
41 set_tex_caption(
"H1",
"H1 norm");
43 set_column_order(new_order);
47 MainOutputTable::save(std::string fname)
51 std::cout <<
"--------------------------------------------\n";
52 write_text(std::cout);
57 std::ofstream ofs(fname +
".txt");
62 std::ofstream ofs(fname +
".tex");