diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-10-06 19:11:20 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-10-06 21:54:28 +0200 |
commit | 25b122f5a7eba54ce7d72e887b2d55533969e76d (patch) | |
tree | 4fa3609a47564edd59d563cd1797aad6ea942e25 /Tools/CodeGen/CodeGen.m | |
parent | 7945a2b461edf00fac685e4196ef74f998888da1 (diff) |
CodeGen.m: Make GridName return a string rather than an expression
The expression it was returning was not a valid CodeGen block
Diffstat (limited to 'Tools/CodeGen/CodeGen.m')
-rw-r--r-- | Tools/CodeGen/CodeGen.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/CodeGen/CodeGen.m b/Tools/CodeGen/CodeGen.m index cebf8e2..e3f673c 100644 --- a/Tools/CodeGen/CodeGen.m +++ b/Tools/CodeGen/CodeGen.m @@ -526,7 +526,7 @@ InitialiseFDVariables[vectorise_] := DeclareAssignVariable[DataType[], "hdzi", "0.5 * dzi"]}]}]; GridName[x_] := If[SOURCELANGUAGE == "C", - ToExpression[ToString[x] <> "[index]"], + ToString[x] <> "[index]", ToString[x] <> "(i,j,k)" ]; |