]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a couple of things in step-52. 9893/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Apr 2020 14:18:23 +0000 (08:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Apr 2020 14:18:23 +0000 (08:18 -0600)
examples/step-52/step-52.cc

index c619be95a9a45f0bfe6fbe3a288c7fd13436932b..3e314b1ee134742c8c737935e94999fd54d93036 100644 (file)
@@ -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);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.