/**
* Purely virtual method used to initialize the Runge-Kutta method.
*/
- virtual void initialize(runge_kutta_method method) = 0;
+ virtual void initialize(const runge_kutta_method method) = 0;
/**
* This function is used to advance from time @p t to t+ @p delta_t. @p F
/**
* Constructor. This function calls initialize(runge_kutta_method).
*/
- ExplicitRungeKutta(runge_kutta_method method);
+ ExplicitRungeKutta(const runge_kutta_method method);
/**
* Initialize the explicit Runge-Kutta method.
*/
- void initialize(runge_kutta_method method);
+ void initialize(const runge_kutta_method method);
/**
* This function is used to advance from time @p t to t+ @p delta_t. @p f
/**
* Initialize the embedded explicit Runge-Kutta method.
*/
- void initialize(runge_kutta_method method);
+ void initialize(const runge_kutta_method method);
/**
* This function is used to advance from time @p t to t+ @p delta_t. @p f
// ----------------------------------------------------------------------
template <typename VectorType>
- ExplicitRungeKutta<VectorType>::ExplicitRungeKutta(runge_kutta_method method)
+ ExplicitRungeKutta<VectorType>::ExplicitRungeKutta(const runge_kutta_method method)
{
initialize(method);
}
template <typename VectorType>
- void ExplicitRungeKutta<VectorType>::initialize(runge_kutta_method method)
+ void ExplicitRungeKutta<VectorType>::initialize(const runge_kutta_method method)
{
status.method = method;
// ----------------------------------------------------------------------
template <typename VectorType>
- ImplicitRungeKutta<VectorType>::ImplicitRungeKutta(runge_kutta_method method,
- unsigned int max_it,
- double tolerance)
+ ImplicitRungeKutta<VectorType>::ImplicitRungeKutta(const runge_kutta_method method,
+ const unsigned int max_it,
+ const double tolerance)
:
RungeKutta<VectorType> (),
skip_linear_combi(false),
template <typename VectorType>
- void ImplicitRungeKutta<VectorType>::initialize(runge_kutta_method method)
+ void ImplicitRungeKutta<VectorType>::initialize(const runge_kutta_method method)
{
status.method = method;
template <typename VectorType>
EmbeddedExplicitRungeKutta<VectorType>::EmbeddedExplicitRungeKutta
- (runge_kutta_method method,
- double coarsen_param,
- double refine_param,
- double min_delta,
- double max_delta,
- double refine_tol,
- double coarsen_tol)
+ (const runge_kutta_method method,
+ const double coarsen_param,
+ const double refine_param,
+ const double min_delta,
+ const double max_delta,
+ const double refine_tol,
+ const double coarsen_tol)
:
coarsen_param(coarsen_param),
refine_param(refine_param),
template <typename VectorType>
- void EmbeddedExplicitRungeKutta<VectorType>::initialize(runge_kutta_method method)
+ void EmbeddedExplicitRungeKutta<VectorType>::initialize(const runge_kutta_method method)
{
status.method = method;
template <typename VectorType>
- void EmbeddedExplicitRungeKutta<VectorType>::set_time_adaptation_parameters(double coarsen_param_,
- double refine_param_,
- double min_delta_,
- double max_delta_,
- double refine_tol_,
- double coarsen_tol_)
+ void EmbeddedExplicitRungeKutta<VectorType>::set_time_adaptation_parameters(
+ const double coarsen_param_,
+ const double refine_param_,
+ const double min_delta_,
+ const double max_delta_,
+ const double refine_tol_,
+ const double coarsen_tol_)
{
coarsen_param = coarsen_param_;
refine_param = refine_param_;