diff options
author | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2001-03-12 12:56:39 +0000 |
---|---|---|
committer | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2001-03-12 12:56:39 +0000 |
commit | 136bb3e3f78b554e6ecc0fb8cebaa6ede2470a5e (patch) | |
tree | 670de0198985e72c2701b5049116a9f89b6fd670 /src/ChooseOutput.c | |
parent | 02d7a623416daaa74d00b06f3b82ec7f67f8cb71 (diff) |
Fixed bug for choosing output of 1D lines / 2D planes. A parameter value
wasn't copied which caused crashes on Alphas because of uninitialized memory.
This closes PR CactusEinstein/554.
Also added missing include for memset(3).
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@45 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'src/ChooseOutput.c')
-rw-r--r-- | src/ChooseOutput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChooseOutput.c b/src/ChooseOutput.c index b597916..b2c9586 100644 --- a/src/ChooseOutput.c +++ b/src/ChooseOutput.c @@ -10,6 +10,7 @@ @@*/ #include <stdlib.h> +#include <string.h> #include "cctk.h" #include "cctk_Arguments.h" @@ -42,7 +43,7 @@ CCTK_FILEVERSION(CactusBase_IOASCII_ChooseOutput_c) { \ origin_phys = ##IOASCII_param; \ } \ - else if (CCTK_ParameterQueryTimesSet (#IOUtil_param, "IOUtil") > 0) \ + else \ { \ origin_phys = ##IOUtil_param; \ } |