aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@7ec00dc9-1e7a-42ad-bf73-a299ee168e72>2000-03-29 07:42:11 +0000
committergoodale <goodale@7ec00dc9-1e7a-42ad-bf73-a299ee168e72>2000-03-29 07:42:11 +0000
commit931ade1a9bc9c96ba40668f0a5defc7abf93ace1 (patch)
tree928194a0a2f1fde654c4510d518b6bcc9f2dad52
parenta5f038a78b30e2e914e392466a4aaa9580ed8ba5 (diff)
Changed to use timelevels - thanks for putting the rotation in PUGH Ed.
Note that the no-boundary condition tests assumed that phi_new had zero at its boundaries. This is, or course, no longer true with timelevel rotation. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/IDScalarWaveCXX/trunk@19 7ec00dc9-1e7a-42ad-bf73-a299ee168e72
-rw-r--r--src/InitialData.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/InitialData.cc b/src/InitialData.cc
index 82e1bf8..8b00476 100644
--- a/src/InitialData.cc
+++ b/src/InitialData.cc
@@ -62,7 +62,7 @@ extern "C" void IDScalarWaveCXX_InitialData(CCTK_ARGUMENTS)
int index = CCTK_GFINDEX3D(cctkGH,i,j,k);
phi[index] = amplitude*cos(kx*x[index]+ky*y[index]+kz*z[index]+omega*cctk_time);
- phi_old[index] = amplitude*cos(kx*x[index]+ky*y[index]+kz*z[index]+omega*(cctk_time-dt));
+ phi_p[index] = amplitude*cos(kx*x[index]+ky*y[index]+kz*z[index]+omega*(cctk_time-dt));
}
}
}
@@ -81,7 +81,7 @@ extern "C" void IDScalarWaveCXX_InitialData(CCTK_ARGUMENTS)
CCTK_REAL R = sqrt(X*X + Y*Y + Z*Z);
phi[index] = amplitude*exp( - sqr( (R - radius) / sigma ) );
- phi_old[index] = amplitude*exp( - sqr( (R - radius - dt) / sigma ) );
+ phi_p[index] = amplitude*exp( - sqr( (R - radius - dt) / sigma ) );
}
}
@@ -105,10 +105,10 @@ extern "C" void IDScalarWaveCXX_InitialData(CCTK_ARGUMENTS)
sin(kz*(z[index]-0.5)*pi)*
cos(omega*cctk_time*pi);
- phi_old[index] = amplitude*sin(kx*(x[index]-0.5)*pi)*
- sin(ky*(y[index]-0.5)*pi)*
- sin(kz*(z[index]-0.5)*pi)*
- cos(omega*(cctk_time-dt)*pi);
+ phi_p[index] = amplitude*sin(kx*(x[index]-0.5)*pi)*
+ sin(ky*(y[index]-0.5)*pi)*
+ sin(kz*(z[index]-0.5)*pi)*
+ cos(omega*(cctk_time-dt)*pi);
}
}
}