From: Konstantin Ladutenko Date: Mon, 8 Jul 2019 16:06:29 +0000 (+0300) Subject: std::strings stores filename, not the file handler X-Git-Tag: v9.2.0-rc1~1406^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af5f30836842f04b46b2e89d4403a0cb9006da2;p=dealii.git std::strings stores filename, not the file handler --- diff --git a/examples/step-29/step-29.cc b/examples/step-29/step-29.cc index 105971672d..7448575008 100644 --- a/examples/step-29/step-29.cc +++ b/examples/step-29/step-29.cc @@ -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); diff --git a/examples/step-29/step-29.prm b/examples/step-29/step-29.prm index d6c5f37ee8..2c49a9ef2c 100644 --- a/examples/step-29/step-29.prm +++ b/examples/step-29/step-29.prm @@ -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