]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a function to retrieve the timestep's number.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Aug 1999 08:04:57 +0000 (08:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Aug 1999 08:04:57 +0000 (08:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@1707 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ca52e7030340a323c908ab5f396edcb42b84af34..5903a36af471825e024e9c4f7d2ffdbf5966337e 100644 (file)
@@ -859,6 +859,14 @@ class TimeStepBase : public Subscriptor
                                      * step.
                                      */
     double get_time () const;
+
+                                    /**
+                                     * Return the number of this time
+                                     * step. Note that this number may vary
+                                     * between different sweeps, if timesteps
+                                     * are added or deleted.
+                                     */
+    unsigned int get_timestep_no () const;
     
                                     /**
                                      * Compute the time difference to the
index 5fd33eb2cdea6b4152a03c4ff171a33bf38f9837..07145e4f847c7f9cd83f1f09eb3799b3bffa3bb5 100644 (file)
@@ -291,6 +291,14 @@ TimeStepBase::get_time () const
 
 
 
+unsigned int
+TimeStepBase::get_timestep_no () const 
+{
+  return timestep_no;
+};
+
+
+
 double
 TimeStepBase::get_backward_timestep () const
 {

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.