aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/CodeGenCactus.m
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-02-02 02:55:05 -0600
committerIan Hinder <ian.hinder@aei.mpg.de>2012-02-02 02:55:05 -0600
commit76829299f7fcda33e37d76fea2f2d9eb32b98a3e (patch)
tree748f139e6bedb2e028a9af40da372b6c5b63116e /Tools/CodeGen/CodeGenCactus.m
parentda7817de6900bf1089b4ef3268016e1f6a276340 (diff)
CodeGenCactus.m: Add FIXME to code concerning vectorisation
Diffstat (limited to 'Tools/CodeGen/CodeGenCactus.m')
-rw-r--r--Tools/CodeGen/CodeGenCactus.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/CodeGen/CodeGenCactus.m b/Tools/CodeGen/CodeGenCactus.m
index 3624c2c..8006774 100644
--- a/Tools/CodeGen/CodeGenCactus.m
+++ b/Tools/CodeGen/CodeGenCactus.m
@@ -624,7 +624,7 @@ DefFn[
ReplacePowers[expr_, vectorise:Boolean, noSimplify:Boolean : False] :=
Module[
{rhs},
- rhs = expr /. Power[xx_, -1] -> INV[xx] /. ToReal[x_] :> x;
+ rhs = expr /. Power[xx_, -1] -> INV[xx] /. ToReal[x_] :> x; (* FIXME: this breaks vectorisation *)
If[SOURCELANGUAGE == "C",
{rhs = rhs /. Power[xx_, 2 ] -> SQR[xx];
rhs = rhs /. Power[xx_, 3 ] -> CUB[xx];