aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorknarf <knarf@b2a53a04-0f4f-0410-87ed-f9f25ced00cf>2005-05-11 09:43:39 +0000
committerknarf <knarf@b2a53a04-0f4f-0410-87ed-f9f25ced00cf>2005-05-11 09:43:39 +0000
commit030d739575c9143852f071e97421d1d4560938c0 (patch)
treeb8a4ef1fbaf7538fc27461a94b465754e7acb536 /src
parent30303c9b289e10341e2fc95dbf066196a7142c08 (diff)
initialise variables correctly
This did only show up in valgrind, but should be fixed anyway git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/TwoPunctures/trunk@43 b2a53a04-0f4f-0410-87ed-f9f25ced00cf
Diffstat (limited to 'src')
-rw-r--r--src/TwoPunctures.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/TwoPunctures.c b/src/TwoPunctures.c
index 033db06..66ee93a 100644
--- a/src/TwoPunctures.c
+++ b/src/TwoPunctures.c
@@ -209,7 +209,18 @@ TwoPunctures (CCTK_ARGUMENTS)
CCTK_INFO ("Solving puncture equation");
/* initialise to 0 */
for (j = 0; j < ntotal; j++)
+ {
v.d0[j] = 0.0;
+ v.d1[j] = 0.0;
+ v.d2[j] = 0.0;
+ v.d3[j] = 0.0;
+ v.d11[j] = 0.0;
+ v.d12[j] = 0.0;
+ v.d13[j] = 0.0;
+ v.d22[j] = 0.0;
+ v.d23[j] = 0.0;
+ v.d33[j] = 0.0;
+ }
/* call for external initial guess */
if (use_external_initial_guess)
{