]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make function names more intuitive. Add post-sweep clean-up function.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Apr 1999 09:16:15 +0000 (09:16 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Apr 1999 09:16:15 +0000 (09:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@1175 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/time_dependent.h
deal.II/deal.II/source/numerics/time_dependent.cc

index fe4bd3f26dfa9065e51bb35ddc81d842030bb8f9..f2d3c7aa07b70c8612c767fcc148a9491c2b780c 100644 (file)
@@ -423,9 +423,20 @@ class TimeDependent
                                      * function since this is some kind of
                                      * "constructor-like" function, which
                                      * should be called bottom-up.
+                                     *
+                                     * The default implementation of this
+                                     * function calls #start_sweep# on all
+                                     * time step objects.
                                      */
     virtual void start_sweep (const unsigned int sweep_no);
 
+                                    /**
+                                     * Analogon to the above function,
+                                     * calling #end_sweep# of each time
+                                     * step object.
+                                     */
+    virtual void end_sweep ();
+
                                     /**
                                      * Exception.
                                      */
@@ -715,8 +726,15 @@ class TimeStepBase : public Subscriptor
                                      * The default implementation of this
                                      * function does nothing.
                                      */
-    virtual void init_for_sweep ();
+    virtual void start_sweep ();
 
+                                    /**
+                                     * This is the analogon to the above
+                                     * function, but it is called at the
+                                     * end of a sweep.
+                                     */
+    virtual void end_sweep ();
+    
                                     /**
                                      * Before the primal problem is
                                      * solved on each time level, this
index 8bb2ced472ffac22f9f4fc93e02184be61f084ad..5fd33eb2cdea6b4152a03c4ff171a33bf38f9837 100644 (file)
@@ -185,11 +185,20 @@ void TimeDependent::start_sweep (const unsigned int s)
     };
 
   for (unsigned int step=0; step<timesteps.size(); ++step)
-    timesteps[step]->init_for_sweep ();
+    timesteps[step]->start_sweep ();
 };
 
 
 
+void TimeDependent::end_sweep ()
+{
+  for (unsigned int step=0; step<timesteps.size(); ++step)
+    timesteps[step]->end_sweep ();
+};
+  
+
+
+
 /* --------------------------------------------------------------------- */
 
 
@@ -222,7 +231,13 @@ TimeStepBase::sleep (const unsigned)
 
 
 void
-TimeStepBase::init_for_sweep () 
+TimeStepBase::start_sweep () 
+{};
+
+
+
+void
+TimeStepBase::end_sweep () 
 {};
 
 

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.