aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp/src/interp.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-08-28 10:59:07 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-08-28 10:59:07 -0500
commit0125cb1995705950c69c00027d65bb051270d806 (patch)
treef2381bd6f967f7465bde754b15de3ef6f224d716 /Carpet/CarpetInterp/src/interp.cc
parentb405ea6e8b05d42a7232cf1a1fd45533f09a395a (diff)
CarpetInterp: Circumvent Intel compiler problem with static variables
Use a Timer* instead of a Timer local variable.
Diffstat (limited to 'Carpet/CarpetInterp/src/interp.cc')
-rw-r--r--Carpet/CarpetInterp/src/interp.cc7
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);
}