// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/th.hh,v 1.11 2004/03/23 19:30:14 schnetter Exp $ #ifndef TH_HH #define TH_HH #include #include #include #include "cctk.h" #include "defs.hh" #include "gh.hh" using namespace std; // Forward declaration template class th; // Output template ostream& operator<< (ostream& os, const th& t); // The time hierarchy (information about the current time) template class th { public: // should be readonly // Fields gh& h; // hierarchy private: CCTK_REAL delta; // time step vector > times; // current times vector > deltas; // time steps public: // Constructors th (gh& h, const CCTK_REAL basedelta); // Destructors ~th (); // Modifiers void recompose (); // Time management CCTK_REAL get_time (const int rl, const int ml) const { assert (rl>=0 && rl=0 && ml=0 && rl=0 && ml=0 && rl=0 && ml=0 && rl=0 && ml=0 && rl=0 && ml inline ostream& operator<< (ostream& os, const th& t) { t.output(os); return os; } #endif // TH_HH