aboutsummaryrefslogtreecommitdiff
path: root/src/Schwarzschild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Schwarzschild.c')
-rw-r--r--src/Schwarzschild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Schwarzschild.c b/src/Schwarzschild.c
index fa442e8..4fc33dd 100644
--- a/src/Schwarzschild.c
+++ b/src/Schwarzschild.c
@@ -91,8 +91,8 @@ void Schwarzschild(CCTK_ARGUMENTS)
{
for (i = 0; i < npoints; i++)
{
- r_squared = r[i] * r[i];
- gxx[i] = one + mass/two/(r_squared * r_squared);
+ tmp = one + mass/two/r[i];
+ gxx[i] = tmp*tmp*tmp*tmp;
gyy[i] = gxx[i];
gzz[i] = gxx[i];
gxy[i] = zero;