From 322839c98b882161b96bb4d78ee2a093d87b7bdd Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Sat, 11 May 2019 19:32:05 +0200 Subject: [PATCH] Write VTU output with higher order elements --- examples/step-44/step-44.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5