aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Timing.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-08-09 20:26:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-08-09 20:26:00 +0000
commit8710d60d1c13819ac7deab33edfded6af795db97 (patch)
tree07197e2f9ab6a63e32b2faa394dc3c1e252947a0 /Carpet/Carpet/src/Timing.cc
parentd1ce391a38e99f955794dfdf57ae471670600c01 (diff)
Carpet: Use CCTK_REAL instead of int to count grid points in timing routine
darcs-hash:20070809202623-dae7b-930a62b745b4d7c096a67b33d1718f7cd320c8c4.gz
Diffstat (limited to 'Carpet/Carpet/src/Timing.cc')
-rw-r--r--Carpet/Carpet/src/Timing.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/Timing.cc b/Carpet/Carpet/src/Timing.cc
index 4a0d1bd23..7b01d2e74 100644
--- a/Carpet/Carpet/src/Timing.cc
+++ b/Carpet/Carpet/src/Timing.cc
@@ -61,13 +61,14 @@ namespace Carpet {
static
void
current_level_updates (cGH const * const cctkGH,
- int & local_updates, int & global_updates)
+ CCTK_REAL & local_updates, CCTK_REAL & global_updates)
{
DECLARE_CCTK_PARAMETERS;
// Count the weighted number of grid points
- int local_num_grid_points = 0;
- int global_num_grid_points = 0;
+ // (int is not good enough for this calculation)
+ CCTK_REAL local_num_grid_points = 0;
+ CCTK_REAL global_num_grid_points = 0;
for (int m = 0; m < maps; ++ m) {
assert (reflevel >= 0);
int const rl = reflevel;
@@ -79,7 +80,7 @@ namespace Carpet {
ibbox const ext = vhh.at(m)->extent(ml,rl,c);
// Count the grid points
- int const domainsize = ext.size();
+ CCTK_REAL const domainsize = ext.size();
if (vhh.at(m)->is_local (rl, c)) {
local_num_grid_points += domainsize;
@@ -138,7 +139,7 @@ namespace Carpet {
{
DECLARE_CCTK_ARGUMENTS;
- int local_updates, global_updates;
+ CCTK_REAL local_updates, global_updates;
current_level_updates (cctkGH, local_updates, global_updates);
* local_grid_point_updates_count += local_updates;