]> https://gitweb.dealii.org/ - dealii.git/commitdiff
std::strings stores filename, not the file handler 8356/head
authorKonstantin Ladutenko <kostyfisik@gmail.com>
Mon, 8 Jul 2019 16:06:29 +0000 (19:06 +0300)
committerKonstantin Ladutenko <kostyfisik@gmail.com>
Mon, 8 Jul 2019 16:06:29 +0000 (19:06 +0300)
examples/step-29/step-29.cc
examples/step-29/step-29.prm

index 105971672d9d213b813d6ffcb342b83f6cf343b9..744857500846c3d803ab6f3e6d05c36c091a7d3c 100644 (file)
@@ -199,7 +199,7 @@ namespace Step29
     // configuration file, which is the purpose of the last subsection:
     prm.enter_subsection("Output parameters");
     {
-      prm.declare_entry("Output file",
+      prm.declare_entry("Output filename",
                         "solution",
                         Patterns::Anything(),
                         "Name of the output file (without extension)");
@@ -803,7 +803,7 @@ namespace Step29
     // corresponding properties of the DataOut object accordingly.
     prm.enter_subsection("Output parameters");
 
-    const std::string output_file = prm.get("Output file");
+    const std::string output_filename = prm.get("Output filename");
     data_out.parse_parameters(prm);
 
     prm.leave_subsection();
@@ -812,7 +812,7 @@ namespace Step29
     // ParameterHandler and the suffix which is provided by the DataOut class
     // (the default suffix is set to the right type that matches the one set
     // in the .prm file through parse_parameters()):
-    const std::string filename = output_file + data_out.default_suffix();
+    const std::string filename = output_filename + data_out.default_suffix();
 
     std::ofstream output(filename);
 
index d6c5f37ee8521fabc0b985b342293922624b71ec..2c49a9ef2c1741fb053a08a68f1db740048d6ff4 100644 (file)
@@ -21,7 +21,7 @@ end
 
 subsection Output parameters
   # Name of the output file (without extension)
-  set Output file   = solution
+  set Output filename = solution
 
   # A name for the output format to be used
   set Output format = vtu

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.