diff options
Diffstat (limited to 'Carpet/CarpetInterp')
-rw-r--r-- | Carpet/CarpetInterp/src/interp.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc index c6f30d76c..4591fc04b 100644 --- a/Carpet/CarpetInterp/src/interp.cc +++ b/Carpet/CarpetInterp/src/interp.cc @@ -1151,8 +1151,9 @@ namespace CarpetInterp { { DECLARE_CCTK_PARAMETERS; - static Timer timer ("CarpetInterp::map_points"); - timer.start (); + static Timer * timer = NULL; + if (not timer) timer = new Timer ("CarpetInterp::map_points"); + timer->start (); bool const map_onto_processors = coords_list != NULL; @@ -1313,7 +1314,7 @@ namespace CarpetInterp { ++ this_homecnts; } // for n - timer.stop (npoints); + timer->stop (npoints); } |