diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-01 09:41:21 -0600 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-01 09:41:21 -0600 |
commit | fddf250b40090d60115e90b1f364212184dc5b77 (patch) | |
tree | 75edfd4f25f9ee2b66f59319e3cbf85464be8ed4 /Carpet/Carpet/src/carpet.hh | |
parent | b3b4faf4e7a0cdbf791467e6dc7c0d6984e31db1 (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.hh | 4 |
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, ...); |