diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-10-26 00:56:32 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-10-26 01:09:33 +0200 |
commit | b5a8c179373d2fd87d10af08702c3ea91f71e699 (patch) | |
tree | 58fb47bc9acfa1861aa4d8bc901e25e8f9b8a0b4 /Carpet/Carpet/src/variables.hh | |
parent | 710ebc5fbb7921ab933a7daa85748b8a187a56d2 (diff) |
Support more than one hierarchy of timers
* Introduce a TimerTree class which contains a pointer to the root and current TimerNodes of that tree
* Adapt TimerNode and Timer classes to use TimerTrees rather than static variables
* Declare a main_timer_tree variable, which is the default tree to use if you don't specify one in Timer timer("timername")
Diffstat (limited to 'Carpet/Carpet/src/variables.hh')
-rw-r--r-- | Carpet/Carpet/src/variables.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/variables.hh b/Carpet/Carpet/src/variables.hh index 707e6f1ae..c673b1699 100644 --- a/Carpet/Carpet/src/variables.hh +++ b/Carpet/Carpet/src/variables.hh @@ -32,7 +32,7 @@ #include <vect.hh> #include "carpet_public.h" - +#include "TimerNode.hh" namespace Carpet { @@ -94,6 +94,7 @@ namespace Carpet { extern int timereflevelfact; extern vect<int,dim> spacereflevelfact; + extern TimerTree main_timer_tree; // Current multigrid factor extern int mglevelfact; |