]> https://gitweb.dealii.org/ - dealii.git/commitdiff
two more implementations that were missing
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 23 May 2014 08:08:15 +0000 (08:08 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 23 May 2014 08:08:15 +0000 (08:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@32972 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/algorithms/theta_timestepping.h

index c7908f8cf0300ccea0b406e54597f3fbf6830fe4..c374e8e6e1d87add8074fda39b6ab9de4be95cae 100644 (file)
@@ -246,11 +246,11 @@ namespace Algorithms
      * The current time in the
      * timestepping scheme.
      */
-    const double &current_time() const;
+    const double current_time() const;
     /**
      * The current step size.
      */
-    const double &step_size() const;
+    const double step_size() const;
     /**
      * The weight between implicit and explicit part.
      */
@@ -394,6 +394,24 @@ namespace Algorithms
     vtheta = new_theta;
     return tmp;
   }
+
+
+  template <class VECTOR>
+  inline
+  const double ThetaTimestepping<VECTOR>::current_time () const
+  {
+    return control.now();
+  }
+
+
+  template <class VECTOR>
+  inline
+  const double ThetaTimestepping<VECTOR>::theta () const
+  {
+    return control.step();
+  }
+
+  
 }
 
 DEAL_II_NAMESPACE_CLOSE

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.