From 0799b83544e61d2801662a9276c8f617480fba1c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 15 Apr 2020 08:18:23 -0600 Subject: [PATCH] Fix a couple of things in step-52. --- examples/step-52/step-52.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/step-52/step-52.cc b/examples/step-52/step-52.cc index c619be95a9..3e314b1ee1 100644 --- a/examples/step-52/step-52.cc +++ b/examples/step-52/step-52.cc @@ -445,11 +445,11 @@ namespace Step52 break; } } + const std::string solution_name = "solution_" + method_name; DataOut<2> data_out; data_out.attach_dof_handler(dof_handler); - std::string solution_name = "solution_" + method_name; data_out.add_data_vector(solution, solution_name); data_out.build_patches(); @@ -457,7 +457,7 @@ namespace Step52 data_out.set_flags(DataOutBase::VtkFlags(time, time_step)); const std::string filename = - solution_name + Utilities::int_to_string(time_step, 3) + ".vtu"; + solution_name + "-" + Utilities::int_to_string(time_step, 3) + ".vtu"; std::ofstream output(filename); data_out.write_vtu(output); -- 2.39.5