diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-06-02 11:13:18 +0200 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:26:31 +0000 |
commit | 354e98350a75316f2976b7ccdd43938797485a7c (patch) | |
tree | 949469c4e5735a15f0edd26d557387ab28cb3e0a /Carpet/Carpet/src/Poison.cc | |
parent | 26ee29ba4a30a2111bf0e130b916a657ba139a97 (diff) |
Adapt Carpet to hierarchical timers
Specifically, remove any hierarchy information that has been added to
the name of timers, as well as any code for creating timers
dynamically, as these are now unnecessary. Additionally, time some
previously-untimed parts of the code and make timer names in some
places more consistent.
Diffstat (limited to 'Carpet/Carpet/src/Poison.cc')
-rw-r--r-- | Carpet/Carpet/src/Poison.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/Poison.cc b/Carpet/Carpet/src/Poison.cc index 9adee4690..1846253f1 100644 --- a/Carpet/Carpet/src/Poison.cc +++ b/Carpet/Carpet/src/Poison.cc @@ -11,7 +11,7 @@ #include <typeprops.hh> #include <carpet.hh> - +#include "Timers.hh" namespace Carpet { @@ -33,6 +33,9 @@ namespace Carpet { if (not poison_new_timelevels) return; + Timer timer("Poison"); + timer.start(); + for (int group=0; group<CCTK_NumGroups(); ++group) { if (CCTK_QueryGroupStorageI(cctkGH, group)) { int const grouptype = CCTK_GroupTypeI (group); @@ -45,6 +48,7 @@ namespace Carpet { } } // if has storage } // for group + timer.stop(); } @@ -145,6 +149,8 @@ namespace Carpet { if (not check_for_poison) return; Checkpoint ("PoisonCheck"); + Timer timer("PoisonCheck"); + timer.start(); for (int group=0; group<CCTK_NumGroups(); ++group) { int const nvar = CCTK_NumVarsInGroupI(group); @@ -256,6 +262,7 @@ namespace Carpet { } // if has storage } // for group + timer.stop(); } } // namespace Carpet |