]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Inline a message text instead of going through contortions. 5948/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 Feb 2018 05:42:01 +0000 (22:42 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 Feb 2018 21:51:42 +0000 (14:51 -0700)
examples/step-32/step-32.cc

index 782bff6766049612cc58cd2bd00c8ac9301e036f..68afe56909ea30f205246c2c1e3a22f3ae745f70 100644 (file)
@@ -75,7 +75,6 @@
 
 #include <fstream>
 #include <iostream>
-#include <sstream>
 #include <limits>
 #include <locale>
 #include <string>
@@ -1040,18 +1039,13 @@ namespace Step32
       {
         parameter_file.close ();
 
-        std::ostringstream message;
-        message << "Input parameter file <"
-                << parameter_filename << "> not found. Creating a"
-                << std::endl
-                << "template file of the same name."
-                << std::endl;
-
         std::ofstream parameter_out (parameter_filename.c_str());
         prm.print_parameters (parameter_out,
                               ParameterHandler::Text);
 
-        AssertThrow (false, ExcMessage (message.str().c_str()));
+        AssertThrow (false, ExcMessage ("Input parameter file <"
+                                        + parameter_filename
+                                        +"> not found. Creating a template file of the same name."));
       }
 
     prm.parse_input (parameter_file);

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.