diff options
author | tradke <tradke@7ec00dc9-1e7a-42ad-bf73-a299ee168e72> | 2000-06-19 09:40:11 +0000 |
---|---|---|
committer | tradke <tradke@7ec00dc9-1e7a-42ad-bf73-a299ee168e72> | 2000-06-19 09:40:11 +0000 |
commit | 5f20e2e000481c46771e9b54789edb788ed38978 (patch) | |
tree | cc4b9b2fbea9a4e4a70fc0a85807256e6fa80f6d | |
parent | 95b870e4388203acc79b9b6b78c88842003e5c98 (diff) |
Initialize the corners of phi_next to zero so that the testsuites can
run now with PUGH::zero_memory = 0 on Alphas.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/IDScalarWaveCXX/trunk@22 7ec00dc9-1e7a-42ad-bf73-a299ee168e72
-rw-r--r-- | src/InitialData.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/InitialData.cc b/src/InitialData.cc index d432365..35a4733 100644 --- a/src/InitialData.cc +++ b/src/InitialData.cc @@ -115,6 +115,17 @@ extern "C" void IDScalarWaveCXX_InitialData(CCTK_ARGUMENTS) } } } + + /* zero out corners of phi next */ + phi_n[CCTK_GFINDEX3D(cctkGH, 0, 0, 0)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, 0, 0, cctk_lsh[2]-1)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, 0, cctk_lsh[1]-1, 0)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, 0, cctk_lsh[1]-1, cctk_lsh[2]-1)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, cctk_lsh[0]-1, 0, 0)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, cctk_lsh[0]-1, 0, cctk_lsh[2]-1)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, cctk_lsh[0]-1, cctk_lsh[1]-1, 0)] = 0; + phi_n[CCTK_GFINDEX3D(cctkGH, cctk_lsh[0]-1, cctk_lsh[1]-1, cctk_lsh[2]-1)] = 0; + return; } |