Subject: [Ferari] [[email-masked]: [Branch ~ffc-core/ffc/main] Rev 1415: Minor bug fix]

From: Anders Logg <[email-masked]>
Date: Mon, 8 Feb 2010 11:58:54 +0100

The FErari optimization framework is now in place but is currently
awaiting some bug fixes in FErari from Rob (and will then require some
more work on my part to get things to run in FFC).

This should not affect the quadrature code generation, but Kristian
could you take a look in quadratureoptimization.py and see if you can
add a suitable comment. Or if possible, move the optimizations to
stage 3 (don't know if that is even possible).

--
Anders

Subject: [Branch ~ffc-core/ffc/main] Rev 1415: Minor bug fix
From: [email-masked]
To: Anders Logg <[email-masked]>
Date: Mon, 08 Feb 2010 10:51:17 -0000

------------------------------------------------------------
revno: 1415
committer: Anders Logg <[email-masked]>
branch nick: ffc-main
timestamp: Mon 2010-02-08 11:49:16 +0100
message:
  Minor bug fix
modified:
  ffc/tensor/tensoroptimization.py

--
lp:ffc
https://code.launchpad.net/~ffc-core/ffc/main

Your team FFC Core Team is subscribed to branch lp:ffc.
To unsubscribe from this branch go to https://code.launchpad.net/~ffc-core/ffc/main/+edit-subscription.
=== modified file 'ffc/tensor/tensoroptimization.py'
--- ffc/tensor/tensoroptimization.py	2010-02-08 10:46:33 +0000
+++ ffc/tensor/tensoroptimization.py	2010-02-08 10:49:16 +0000
@@ -32,7 +32,7 @@
         # Compute optimized abstract code
         if ir["rank"] == 2:
             abstract_code = binary.optimize(A0.A0)
-        elif rank == 1:
+        elif ir["rank"] == 1:
             abstract_code = binary.optimize_action(A0.A0)
         else:
             warning("Tensor optimization only available for rank 1 and 2 tensors, skipping optimizations")