From 97e69301ab27a1409f902d92147e822511dd7741 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Mon, 6 Apr 2020 22:46:47 +0200 Subject: [PATCH] Output results as a complex-valued vector --- examples/step-62/step-62.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/examples/step-62/step-62.cc b/examples/step-62/step-62.cc index 02ac339dea..91dc9cadfc 100644 --- a/examples/step-62/step-62.cc +++ b/examples/step-62/step-62.cc @@ -1105,17 +1105,10 @@ namespace step62 // been described in step-40. if (parameters.save_vtu_files) { - std::vector solution_names(1, "displacement_x"); - if (dim >= 2) - { - solution_names.emplace_back("displacement_y"); - } - if (dim == 3) - { - solution_names.emplace_back("displacement_z"); - } + std::vector solution_names(dim, "displacement"); std::vector - interpretation(dim, DataComponentInterpretation::component_is_scalar); + interpretation( + dim, DataComponentInterpretation::component_is_part_of_vector); DataOut data_out; data_out.add_data_vector(dof_handler, -- 2.39.5