diff options
author | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2003-06-10 10:56:36 +0000 |
---|---|---|
committer | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2003-06-10 10:56:36 +0000 |
commit | 10467bfa5c0373d5e668f15c60febe0b17f9d643 (patch) | |
tree | 978170b284023c7101cdd449db83c8a4a1f79a08 | |
parent | 48f3617899f8612c9ea595d4b84efaf295cf4864 (diff) |
Some compilers (eg. SGI cc) only accept constant values as initializers
in a structure definition. The structure is now initialized explicitely.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@168 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r-- | src/Output.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Output.c b/src/Output.c index 958ce62..05b6789 100644 --- a/src/Output.c +++ b/src/Output.c @@ -129,9 +129,12 @@ int IOHDF5_OutputGH (const cGH *GH) @@*/ int IOHDF5_OutputVarAs (const cGH *GH, const char *fullname, const char *alias) { - callback_info_t info = {GH, fullname, alias, 0}; + callback_info_t info; + info.GH = GH; + info.fullname = fullname; + info.alias = alias; CCTK_TraverseString (fullname, OutputVarAs, &info, CCTK_VAR); return (info.retval); } |