diff options
author | tradke <tradke@071ba4cb-2270-47cd-a45a-3e542e115664> | 2000-06-19 09:40:10 +0000 |
---|---|---|
committer | tradke <tradke@071ba4cb-2270-47cd-a45a-3e542e115664> | 2000-06-19 09:40:10 +0000 |
commit | 2ec709c07fbf16f45489a1a6be6cef1e1b63c571 (patch) | |
tree | 650e4f0531f7608662f6feb29327bdf4508a3a8a | |
parent | ff915efca67647e53c93f0494240af0b68ab289c (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/IDScalarWaveC/trunk@9 071ba4cb-2270-47cd-a45a-3e542e115664
-rw-r--r-- | src/InitialData.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/InitialData.c b/src/InitialData.c index 0ebff70..b50b17e 100644 --- a/src/InitialData.c +++ b/src/InitialData.c @@ -128,6 +128,17 @@ void IDScalarWaveC_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; } |