From 6af5f30836842f04b46b2e89d4403a0cb9006da2 Mon Sep 17 00:00:00 2001 From: Konstantin Ladutenko Date: Mon, 8 Jul 2019 19:06:29 +0300 Subject: [PATCH] std::strings stores filename, not the file handler --- examples/step-29/step-29.cc | 6 +++--- examples/step-29/step-29.prm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5