// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/th.cc,v 1.14 2004/03/23 19:30:14 schnetter Exp $ #include #include #include #include "cctk.h" #include "defs.hh" #include "gh.hh" #include "th.hh" using namespace std; // Constructors template th::th (gh& h, const CCTK_REAL basedelta) : h(h), delta(basedelta) { h.add(this); } // Destructors template th::~th () { h.remove(this); } // Modifiers template void th::recompose () { times.resize(h.reflevels()); deltas.resize(h.reflevels()); for (int rl=0; rl void th::output (ostream& os) const { os << "th<" << D << ">:" << "times={"; for (int rl=0; rl;