]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add underscores to filenames
authorTimo Heister <timo.heister@gmail.com>
Wed, 6 Sep 2017 21:49:29 +0000 (17:49 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 6 Sep 2017 21:49:29 +0000 (17:49 -0400)
examples/step-10/doc/results.dox
examples/step-10/step-10.cc

index 693d33c6040268ff8d684e42dc6c14228e30fa17..a81bf44e410174ef0143664c039e0caa991b6f01 100644 (file)
@@ -10,7 +10,7 @@ the commands
 set style data lines
 set size 0.721, 1
 unset key
-plot [-1:1][-1:1] "ball0_mapping_q1.dat"
+plot [-1:1][-1:1] "ball_0_mapping_q_1.dat"
 @endcode
 or using one of the other filenames. The second line makes sure that
 the aspect ratio of the generated output is actually 1:1, i.e. a
index a73bd2feaff8c8acd07b38887e58b73eb3d65b22..641eecfc946f89fb576f2b95ed09ee9b799e2c4a 100644 (file)
@@ -97,7 +97,7 @@ namespace Step10
         // Then have a string which denotes the base part of the names of the
         // files into which we write the output (ending with the refinement
         // level).
-        std::string filename_base = "ball" + Utilities::to_string(refinement);
+        std::string filename_base = "ball_" + Utilities::to_string(refinement);
 
         // Then output the present grid for $Q_1$, $Q_2$, and $Q_3$ mappings:
         for (unsigned int degree=1; degree<4; ++degree)
@@ -139,7 +139,7 @@ namespace Step10
 
             // Finally, generate a filename and a file for output:
             std::string filename = filename_base
-                                   + "_mapping_q"
+                                   + "_mapping_q_"
                                    + Utilities::to_string(degree)
                                    + ".dat";
             std::ofstream gnuplot_file (filename.c_str());

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.