aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/CodeGen.m
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2011-10-06 19:11:20 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2011-10-06 21:54:28 +0200
commit25b122f5a7eba54ce7d72e887b2d55533969e76d (patch)
tree4fa3609a47564edd59d563cd1797aad6ea942e25 /Tools/CodeGen/CodeGen.m
parent7945a2b461edf00fac685e4196ef74f998888da1 (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.m2
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)"
];