]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make MultipleParameterLoop work again following yesterday's changes.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 25 Aug 2013 22:31:38 +0000 (22:31 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 25 Aug 2013 22:31:38 +0000 (22:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@30487 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/parameter_handler.h
deal.II/source/base/parameter_handler.cc

index 70712ea75177d5ae6fed929367ff753eafe8aadc..0e6acd4ed05b708ae7975af79ad2cb2878130bd3 100644 (file)
@@ -2246,7 +2246,28 @@ public:
    */
   virtual ~MultipleParameterLoop ();
 
-  virtual bool read_input (std::istream &Input);
+  /**
+   * Read input from a stream until the stream returns the <tt>eof</tt> condition
+   * or error. The second argument can be used to denote the name of the file
+   * (if that's what the input stream represents) we are reading from; this
+   * is only used when creating output for error messages.
+   *
+   * Return whether the read was successful.
+   */
+  virtual bool read_input (std::istream &input,
+                           const std::string &filename = "input file");
+
+  /**
+   * Read input from a file the name of which is given. The PathSearch
+   * class "PARAMETERS" is used to find the file.
+   *
+   * Return whether the read was successful.
+   *
+   * Unless <tt>optional</tt> is <tt>true</tt>, this function will
+   * automatically generate the requested file with default values if the
+   * file did not exist. This file will not contain additional comments if
+   * <tt>write_stripped_file</tt> is <tt>true</tt>.
+   */
   virtual bool read_input (const std::string &FileName,
                            const bool optional = false,
                            const bool write_stripped_file = false);
index eb0bde28f45b8d661be72d408783c69407154bed..267fef855ed7f01a1471e1be4cdc5bcdcad98959 100644 (file)
@@ -2491,11 +2491,12 @@ MultipleParameterLoop::~MultipleParameterLoop ()
 
 
 
-bool MultipleParameterLoop::read_input (std::istream &input)
+bool MultipleParameterLoop::read_input (std::istream &input,
+                                        const std::string &filename)
 {
   AssertThrow (input, ExcIO());
 
-  bool x = ParameterHandler::read_input (input);
+  bool x = ParameterHandler::read_input (input, filename);
   if (x)
     init_branches ();
   return x;

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.