From: fsonner Date: Thu, 7 May 2015 14:08:35 +0000 (+0200) Subject: Remove unused function from param loop UserClass X-Git-Tag: v8.3.0-rc1~192^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=290efd3736df3ca13853a245a411cea5af0c5c17;p=dealii.git Remove unused function from param loop UserClass --- diff --git a/include/deal.II/base/parameter_handler.h b/include/deal.II/base/parameter_handler.h index 391db1c3cc..7ce6ff7deb 100644 --- a/include/deal.II/base/parameter_handler.h +++ b/include/deal.II/base/parameter_handler.h @@ -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 declare_parameters - * function of the problem class. - */ - virtual void declare_parameters (ParameterHandler &prm) = 0; - /** * Get the parameters and run any necessary action. */