From: Wolfgang Bangerth Date: Wed, 15 Apr 2020 19:38:49 +0000 (-0600) Subject: Use the same variable name in all output files. X-Git-Tag: v9.2.0-rc1~223^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9897%2Fhead;p=dealii.git Use the same variable name in all output files. --- diff --git a/examples/step-52/step-52.cc b/examples/step-52/step-52.cc index 3e314b1ee1..60a8a3a07b 100644 --- a/examples/step-52/step-52.cc +++ b/examples/step-52/step-52.cc @@ -445,19 +445,19 @@ namespace Step52 break; } } - const std::string solution_name = "solution_" + method_name; DataOut<2> data_out; data_out.attach_dof_handler(dof_handler); - data_out.add_data_vector(solution, solution_name); + data_out.add_data_vector(solution, "solution"); data_out.build_patches(); data_out.set_flags(DataOutBase::VtkFlags(time, time_step)); - const std::string filename = - solution_name + "-" + Utilities::int_to_string(time_step, 3) + ".vtu"; + const std::string filename = "solution_" + method_name + "-" + + Utilities::int_to_string(time_step, 3) + + ".vtu"; std::ofstream output(filename); data_out.write_vtu(output);