Newton (Operator<VECTOR> &residual, Operator<VECTOR> &inverse_derivative);
/**
- * Declare the parameters
- * applicable to Newton's method.
+ * Declare the parameters applicable to Newton's method.
*/
- void declare_parameters (ParameterHandler ¶m);
+ static void declare_parameters (ParameterHandler ¶m);
/**
- * Read the parameters.
+ * Read the parameters in the ParameterHandler.
*/
- void initialize (ParameterHandler ¶m);
+ void parse_parameters (ParameterHandler ¶m);
+
+ /**
+ * @deprecated Use parse_parameters().
+ */
+ void initialize (ParameterHandler ¶m) DEAL_II_DEPRECATED;
/**
* Initialize the pointer
template <class VECTOR>
void
- Newton<VECTOR>::initialize (ParameterHandler ¶m)
+ Newton<VECTOR>::parse_parameters (ParameterHandler ¶m)
{
param.enter_subsection("Newton");
control.parse_parameters (param);
param.leave_subsection ();
}
+ template <class VECTOR>
+ void
+ Newton<VECTOR>::initialize (ParameterHandler ¶m)
+ {
+ parse_parameters(param);
+ }
+
template <class VECTOR>
void
Newton<VECTOR>::initialize (OutputOperator<VECTOR> &output)
{
const VECTOR *v = vectors.try_read_ptr<VECTOR>(i);
if (v == 0) continue;
- deallog << vectors.name(i);
+ deallog << vectors.name(i);
for (unsigned int j=0; j<v->size(); ++j)
deallog << ' ' << (*v)(j);
deallog << std::endl;
*/
void set_output(OutputOperator<VECTOR> &output);
- void declare_parameters (ParameterHandler ¶m);
- void initialize (ParameterHandler ¶m);
+ /**
+ * Declare parameters in a parameter handler.
+ */
+ static void declare_parameters (ParameterHandler ¶m);
+
+ /**
+ * Read the parameters in the ParameterHandler.
+ */
+ void parse_parameters (ParameterHandler ¶m);
+
+ /**
+ * @deprecated Use parse_parameters().
+ */
+ void initialize (ParameterHandler ¶m) DEAL_II_DEPRECATED;
/**
* The current time in the
* timestepping scheme.
*/
double theta() const;
- /**
- * Set a new weight and return the old
- */
+ /**
+ * Set a new weight and return the old
+ */
double theta(double new_theta);
/**
double ThetaTimestepping<VECTOR>::current_time () const
{
return control.now();
- }
+ }
}
DEAL_II_NAMESPACE_CLOSE
template <class VECTOR>
void
- ThetaTimestepping<VECTOR>::initialize (ParameterHandler ¶m)
+ ThetaTimestepping<VECTOR>::parse_parameters (ParameterHandler ¶m)
{
param.enter_subsection("ThetaTimestepping");
control.parse_parameters (param);
}
+ template <class VECTOR>
+ void
+ ThetaTimestepping<VECTOR>::initialize (ParameterHandler ¶m)
+ {
+ parse_parameters(param);
+ }
+
+
template <class VECTOR>
void
ThetaTimestepping<VECTOR>::operator() (NamedData<VECTOR *> &out, const NamedData<VECTOR *> &in)