From 4e15b47bbea58865d32bd69583fb70a6049ca930 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 28 Aug 2008 10:59:07 -0500 Subject: CarpetInterp: Circumvent Intel compiler problem with static variables Use a Timer* instead of a Timer local variable. --- Carpet/CarpetInterp/src/interp.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Carpet/CarpetInterp') 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); } -- cgit v1.2.3