VectorTools::compute_global_error(triangulation,
norm_per_cell,
VectorTools::L2_norm);
- std::cout << " Error in the L2 norm : " << error_norm
+ std::cout << " Error in the L2 norm : " << error_norm
<< std::endl;
}
data_out.add_data_vector(solution, "solution");
data_out.build_patches();
- std::ofstream output_vtu(
- ("output_" + Utilities::int_to_string(iteration, 6) + ".vtu").c_str());
+ const std::string filename =
+ ("output_" + Utilities::int_to_string(iteration, 6) + ".vtu");
+ std::ofstream output_vtu(filename);
data_out.write_vtu(output_vtu);
}
const unsigned int n_cycles = 4;
for (unsigned int cycle = 0; cycle < n_cycles; ++cycle)
{
- std::cout << "Cycle: " << cycle << " of " << n_cycles << std::endl;
+ std::cout << "Cycle " << cycle << " of " << n_cycles << std::endl;
triangulation.refine_global(1);
setup_system();