FFC

Merge lp:~martinal/ffc/work into lp:ffc

Proposed by Martin Sandve Alnæs
Status: Merged
Merged at revision: 1749
Proposed branch: lp:~martinal/ffc/work
Merge into: lp:ffc
Diff against target: 15 lines (+2/-3)
1 file modified
ffc/jitcompiler.py (+2/-3)
To merge this branch: bzr merge lp:~martinal/ffc/work
Reviewer Review Type Date Requested Status
Registry Administrators Pending
Review via email: mp+102819@code.launchpad.net

Description of the change

To post a comment you must log in.
lp:~martinal/ffc/work updated
1749. By Anders Logg <logg@glaurung>

Merge: Martin Sandve Alnæs 2012-04-20 Bugfix in jit_element.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ffc/jitcompiler.py'
2--- ffc/jitcompiler.py 2011-10-26 03:04:52 +0000
3+++ ffc/jitcompiler.py 2012-04-20 09:19:20 +0000
4@@ -170,9 +170,8 @@
5
6 # Create simplest possible dummy form
7 v = TestFunction(element)
8- for i in range(len(element.value_shape())):
9- v = v[i]
10- form = v*dx
11+ ii = (0,)*v.rank()
12+ form = v[ii]*dx
13
14 # Compile form
15 compiled_form, module, form_data, prefix = jit_form(form, parameters)