aboutsummaryrefslogtreecommitdiff
path: root/CarpetExtra/CarpetRegridTest/src/SetupGaussian.c
diff options
context:
space:
mode:
Diffstat (limited to 'CarpetExtra/CarpetRegridTest/src/SetupGaussian.c')
-rw-r--r--CarpetExtra/CarpetRegridTest/src/SetupGaussian.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/CarpetExtra/CarpetRegridTest/src/SetupGaussian.c b/CarpetExtra/CarpetRegridTest/src/SetupGaussian.c
index f709d7549..dbac5a897 100644
--- a/CarpetExtra/CarpetRegridTest/src/SetupGaussian.c
+++ b/CarpetExtra/CarpetRegridTest/src/SetupGaussian.c
@@ -29,11 +29,7 @@ void CarpetRegrid_SetupGaussian(CCTK_ARGUMENTS)
{
index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- X = x[index];
- Y = y[index];
- Z = z[index];
-
- R = sqrt(X*X + Y*Y + Z*Z);
+ R = r[index];
phi[index] = amplitude*exp( - pow( (R - radius) / sigma, 2.0 ) );