]> https://gitweb.dealii.org/ - dealii.git/commitdiff
some SmartPointers needed a second template. wrote the function ste_output in ThetaTi...
authorBaerbel Jannsen <baerbel.janssen@gmail.com>
Fri, 2 Jul 2010 13:47:18 +0000 (13:47 +0000)
committerBaerbel Jannsen <baerbel.janssen@gmail.com>
Fri, 2 Jul 2010 13:47:18 +0000 (13:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@21444 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/theta_timestepping.h

index b1d3c21129576f3c89fa8c7b8990aa86bc4638c7..09885537747f6519448c2a16bfb7a0e5969059e1 100644 (file)
@@ -37,7 +37,7 @@ namespace Algorithms
   {
 /// The current time
       double time;
-/// The current step size
+/// The current step size times something
       double step;
   };
   
@@ -244,7 +244,7 @@ namespace Algorithms
                                        * <i>c</i> is the time step
                                        * size in explicit_data().
                                        */
-      SmartPointer<Operator<VECTOR> > op_explicit;
+      SmartPointer<Operator<VECTOR>, ThetaTimestepping<VECTOR> > op_explicit;
       
                                       /**
                                        * The operator solving the
@@ -268,13 +268,13 @@ namespace Algorithms
                                        * <i>c</i> is the time step
                                        * size in explicit_data().
                                        */
-      SmartPointer<Operator<VECTOR> > op_implicit;
+      SmartPointer<Operator<VECTOR>, ThetaTimestepping<VECTOR> > op_implicit;
 
                                       /**
                                        * The operator writing the
                                        * output in each time step
                                        */
-      SmartPointer<OutputOperator<VECTOR> > output;
+      SmartPointer<OutputOperator<VECTOR>, ThetaTimestepping<VECTOR> > output;
   };
 
 
@@ -295,6 +295,12 @@ namespace Algorithms
     return d_implicit;
   }
   
+  template <class VECTOR>
+  inline
+  void ThetaTimestepping<VECTOR>::set_output (OutputOperator<VECTOR>& out) 
+  {
+    output = &out;
+  }
 }
 
 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.