aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/th.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/th.cc')
-rw-r--r--Carpet/CarpetLib/src/th.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/th.cc b/Carpet/CarpetLib/src/th.cc
index 77415fffc..84b896b55 100644
--- a/Carpet/CarpetLib/src/th.cc
+++ b/Carpet/CarpetLib/src/th.cc
@@ -15,12 +15,14 @@ using namespace std;
// Constructors
th::th (gh& h_, const CCTK_REAL basedelta)
- : h(h_), delta(basedelta) {
+ : h(h_), delta(basedelta)
+{
h.add(this);
}
// Destructors
-th::~th () {
+th::~th ()
+{
h.remove(this);
}
@@ -56,7 +58,8 @@ void th::recompose ()
// Output
-void th::output (ostream& os) const {
+void th::output (ostream& os) const
+{
os << "th:"
<< "times={";
const char * sep = "";