]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove unused function from param loop UserClass 910/head
authorfsonner <florian.sonner@iwr.uni-heidelberg.de>
Thu, 7 May 2015 14:08:35 +0000 (16:08 +0200)
committerfsonner <florian.sonner@iwr.uni-heidelberg.de>
Thu, 7 May 2015 14:08:35 +0000 (16:08 +0200)
include/deal.II/base/parameter_handler.h

index 391db1c3cc54a5cf79b93110fbe69d473e331171..7ce6ff7debbc1add12f610e269b1091777f165d0 100644 (file)
@@ -2071,8 +2071,9 @@ private:
  *         HelperClass ();
  *
  *         virtual void create_new (const unsigned int run_no);
- *         virtual void declare_parameters (ParameterHandler &prm);
  *         virtual void run (ParameterHandler &prm);
+ *
+ *         static void declare_parameters (ParameterHandler &prm);
  *       private:
  *         Problem *p;
  *     };
@@ -2088,8 +2089,6 @@ private:
  *
  *
  *     void HelperClass::declare_parameters (ParameterHandler &prm) {
- *                                         // entries of the problem class
- *                                 // note: must be static member!
  *       Problem::declare_parameters (prm);
  *     }
  *
@@ -2101,13 +2100,13 @@ private:
  *
  *
  *
- *     void main () {
+ *     int main () {
  *       class MultipleParameterLoop prm;
  *       HelperClass h;
- *
- *       h.declare_parameters (prm);
+ *       HelperClass::declare_parameters (prm);
  *       prm.read_input ("prmtest.prm");
  *       prm.loop (h);
+ *       return 0;
  *     }
  *   @endcode
  *
@@ -2245,12 +2244,6 @@ public:
      */
     virtual void create_new (const unsigned int run_no) = 0;
 
-    /**
-     * This should declare parameters and call the <tt>declare_parameters</tt>
-     * function of the problem class.
-     */
-    virtual void declare_parameters (ParameterHandler &prm) = 0;
-
     /**
      * Get the parameters and run any necessary action.
      */

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.