#ifndef TH_HH #define TH_HH #include #include #include #include "cctk.h" #include "defs.hh" #include "gh.hh" using namespace std; // Forward declaration class th; // Output ostream& operator<< (ostream& os, const th& t); // The time hierarchy (information about the current time) class th { public: // should be readonly // Fields gh& h; // hierarchy private: const vector reffacts; CCTK_REAL delta; // time step vector > times; // current times [ml][rl] vector > deltas; // time steps [ml][rl] public: // Constructors th (gh& h, const vector & reffacts, const CCTK_REAL basedelta); // Destructors ~th (); // Modifiers void regrid (); // Time management CCTK_REAL get_time (const int rl, const int ml) const { assert (rl>=0 and rl=0 and ml=0 and rl=0 and ml=0 and rl=0 and ml=0 and rl=0 and ml=0 and rl=0 and ml