aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Recompose.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-03-01 14:36:11 -0500
committerErik Schnetter <schnetter@gmail.com>2012-03-01 14:36:11 -0500
commit6d3b75da46282c8157962e34bccb1bd43d0ac67f (patch)
tree5e9f24608c15eee15c3a13b0caf9bb14dbbdb2e2 /Carpet/Carpet/src/Recompose.cc
parent2712f70e2948ecb6cb1ce8f1baca526c298836d6 (diff)
Carpet: Make compile with CCTK_REAL=float
Diffstat (limited to 'Carpet/Carpet/src/Recompose.cc')
-rw-r--r--Carpet/Carpet/src/Recompose.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Recompose.cc b/Carpet/Carpet/src/Recompose.cc
index 7d83ce02f..d20e5fd0b 100644
--- a/Carpet/Carpet/src/Recompose.cc
+++ b/Carpet/Carpet/src/Recompose.cc
@@ -1059,12 +1059,12 @@ namespace Carpet {
min_active.AT(rl) = min (min_active.AT(rl), num_active_per_proc.AT(p));
max_active.AT(rl) = max (max_active.AT(rl), num_active_per_proc.AT(p));
avg_active.AT(rl) += num_active_per_proc.AT(p);
- sdv_active.AT(rl) += pow (num_active_per_proc.AT(p), 2);
+ sdv_active.AT(rl) += ipow (num_active_per_proc.AT(p), 2);
}
avg_active.AT(rl) /= dist::size();
sdv_active.AT(rl) /= dist::size();
sdv_active.AT(rl) =
- sqrt (max (rzero, sdv_active.AT(rl) - pow (avg_active.AT(rl), 2)));
+ sqrt (max (rzero, sdv_active.AT(rl) - ipow (avg_active.AT(rl), 2)));
} // for rl
// Output