diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-08-28 10:59:07 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-08-29 15:15:09 -0500 |
commit | 4e15b47bbea58865d32bd69583fb70a6049ca930 (patch) | |
tree | 9d718d4bebed13009153dca2d7beca065a20a5eb /Carpet/CarpetInterp | |
parent | 09affe060cdf3a5b33f16ed9a95cf55ae42218da (diff) |
CarpetInterp: Circumvent Intel compiler problem with static variables
Use a Timer* instead of a Timer local variable.
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); } |