std::vector<std::string> solution_names(dim, "velocity");
solution_names.emplace_back("pressure");
std::vector<DataComponentInterpretation::DataComponentInterpretation>
data_component_interpretation(
dim, DataComponentInterpretation::component_is_part_of_vector);
data_component_interpretation.push_back(
DataComponentInterpretation::component_is_scalar);
const MappingQ<dim> mapping(1);
DataOut<dim> data_out;
data_out.attach_dof_handler(dof_handler);
data_out.add_data_vector(error_u, "error_u");
data_out.add_data_vector(error_p, "error_p");
data_out.add_data_vector(solution,
solution_names,
DataOut<dim>::type_dof_data,
data_component_interpretation);
data_out.add_data_vector(error_per_cell_omega, "error_indicator_omega");
data_out.build_patches(mapping, fe.degree + 1, DataOut<dim>::curved_inner_cells);