timeinfo.h

Go to the documentation of this file.
00001 #ifndef  __TimeInfo_h
00002 #define  __TimeInfo_h
00003 
00004 #include  <string>
00005 
00006 /*-----------------------------------------*/
00007 
00008 namespace Gascoigne
00009 {
00010 class TimeInfo
00011 {
00012 protected:
00013 
00014   double _deltat, _time, _theta;
00015   double _tbegin, _tend;
00016   int    _iter, _neuler;
00017   double _ftscale[3], _fttheta[3];
00018   std::string _scheme, _actualscheme;
00019   double _Theta;
00020 
00021   int ftstep() const;
00022 
00023 public:
00024 
00025   TimeInfo();
00026 
00027   void ReInit();
00028   void ReInit(double det);
00029   void BasicInit();
00030 
00031   double dt    () const;
00032   double theta () const;
00033   double oldrhs() const;
00034   double rhs   () const;
00035 
00036   void iteration(int i);
00037   void ReInit(double tb, double det, double te, const std::string& sch, int ne, double t);
00038   void ReInitTheta();
00039   void scale_timestep(double s) { _deltat *= s;}
00040   void stepback() { _time -= _deltat;}
00041   double time() const { return _time;}
00042 
00043   double time_begin() const { return _tbegin;}
00044   double time_end()   const { return _tend;}
00045 
00046   void ReInitBackward(int niter, double endtime);
00047   void iteration_backward(int i);
00048   void SpecifyScheme(int i);
00049   void RejectTimeStep(double d);
00050   void ScaleTimeStep(double d);
00051 };
00052 }
00053 
00054 #endif

Generated on Thu Sep 14 10:34:38 2006 for Gascoigne by  doxygen 1.4.7