aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/carpet.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-03-01 09:41:21 -0600
committerErik Schnetter <schnetter@cct.lsu.edu>2008-03-01 09:41:21 -0600
commitfddf250b40090d60115e90b1f364212184dc5b77 (patch)
tree75edfd4f25f9ee2b66f59319e3cbf85464be8ed4 /Carpet/Carpet/src/carpet.hh
parentb3b4faf4e7a0cdbf791467e6dc7c0d6984e31db1 (diff)
Implement schedule wrappers
Schedule wrappers are routines that can be registered with Carpet. They will be called before and after any scheduled routine is called. This allows custom debugging and profiling routines, such as e.g. single-stepping through the schedule.
Diffstat (limited to 'Carpet/Carpet/src/carpet.hh')
-rw-r--r--Carpet/Carpet/src/carpet.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/carpet.hh b/Carpet/Carpet/src/carpet.hh
index f61f60264..271a86086 100644
--- a/Carpet/Carpet/src/carpet.hh
+++ b/Carpet/Carpet/src/carpet.hh
@@ -59,6 +59,10 @@ namespace Carpet {
void CalculateChecksums (const cGH* cgh, checktimes where);
void CheckChecksums (const cGH* cgh, checktimes where);
+ // Schedule
+ void CallBeforeRoutines (cGH const * restrict cctkGH);
+ void CallAfterRoutines (cGH const * restrict cctkGH);
+
// Debugging output
void Output (const char* fmt, ...);
void Waypoint (const char* fmt, ...);