From: Jean-Paul Pelteret Date: Sat, 11 May 2019 17:32:05 +0000 (+0200) Subject: Write VTU output with higher order elements X-Git-Tag: v9.1.0-rc1~55^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=322839c98b882161b96bb4d78ee2a093d87b7bdd;p=dealii.git Write VTU output with higher order elements --- diff --git a/examples/step-44/step-44.cc b/examples/step-44/step-44.cc index 2cb1b0c477..f57067007e 100644 --- a/examples/step-44/step-44.cc +++ b/examples/step-44/step-44.cc @@ -3373,6 +3373,10 @@ namespace Step44 solution_name.emplace_back("pressure"); solution_name.emplace_back("dilatation"); + DataOutBase::VtkFlags output_flags; + output_flags.write_higher_order_cells = true; + data_out.set_flags(output_flags); + data_out.attach_dof_handler(dof_handler); data_out.add_data_vector(solution_n, solution_name, @@ -3394,8 +3398,8 @@ namespace Step44 data_out.build_patches(q_mapping, degree); std::ofstream output("solution-" + std::to_string(dim) + "d-" + - std::to_string(time.get_timestep()) + ".vtk"); - data_out.write_vtk(output); + std::to_string(time.get_timestep()) + ".vtu"); + data_out.write_vtu(output); } } // namespace Step44