From 136bb3e3f78b554e6ecc0fb8cebaa6ede2470a5e Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 12 Mar 2001 12:56:39 +0000 Subject: 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 --- src/ChooseOutput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 +#include #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; \ } -- cgit v1.2.3