diff options
author | goodale <goodale@7ec00dc9-1e7a-42ad-bf73-a299ee168e72> | 2002-01-16 03:13:38 +0000 |
---|---|---|
committer | goodale <goodale@7ec00dc9-1e7a-42ad-bf73-a299ee168e72> | 2002-01-16 03:13:38 +0000 |
commit | 985a7b06d2069e7cb281b7c76315a916d01354e4 (patch) | |
tree | 0cba80abb82270008ed5d758868a4c3cf8d8e170 /src | |
parent | 7c46179925adff84c890e8d30a2c28fe077d6299 (diff) |
Making the initial data consistent between the initial data thorns -
in particular adding "none" to the C and C++ versions.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/IDScalarWaveCXX/trunk@30 7ec00dc9-1e7a-42ad-bf73-a299ee168e72
Diffstat (limited to 'src')
-rw-r--r-- | src/InitialData.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/InitialData.cc b/src/InitialData.cc index 1f659c6..5e457d8 100644 --- a/src/InitialData.cc +++ b/src/InitialData.cc @@ -115,6 +115,23 @@ extern "C" void IDScalarWaveCXX_InitialData(CCTK_ARGUMENTS) } } } + else if (CCTK_Equals(initial_data, "none")) + { + for(int k=0; k<cctk_lsh[2]; k++) + { + for(int j=0; j<cctk_lsh[1]; j++) + { + for(int i=0; i<cctk_lsh[0]; i++) + { + int index = CCTK_GFINDEX3D(cctkGH,i,j,k); + + phi[index] = 0.0; + + phi_p[index] = 0.0; + } + } + } + } return; } |