/**
* The weight between implicit and explicit part.
*/
- const double &theta() const;
+ const double theta() const;
+
+ /**
+ * Set a new weight and return the old
+ */
+ const double theta(double new_theta);
/**
* The data handed to the #op_explicit time stepping operator.
{
output = &out;
}
+
+
+ template <class VECTOR>
+ inline
+ const double ThetaTimestepping<VECTOR>::theta () const
+ {
+ return vtheta;
+ }
+
+
+ template <class VECTOR>
+ inline
+ const double ThetaTimestepping<VECTOR>::theta (double new_theta)
+ {
+ const double tmp = vtheta;
+ vtheta = new_theta;
+ return tmp;
+ }
}
DEAL_II_NAMESPACE_CLOSE
// The data provided to the inner solver
src2.add<const VECTOR *>(aux, "Previous time");
src2.add<const double *>(&d_implicit.time, "Time");
- src2.add<const double *>(&d_explicit.step, "Timestep");
+ src2.add<const double *>(&d_implicit.step, "Timestep");
src2.merge(in);
if (output != 0)
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