eval_jacobi_batch crashes on interval

Bug #504747 reported by Kristian B. Ølgaard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FIAT
Fix Released
Undecided
Robert Kirby

Bug Description

The following simple for crashes FIAT:

element = FiniteElement("Lagrange", interval, 3)

v = TestFunction(element)
u = TrialFunction(element)

a = inner(v, u)*dx

  File "/home/oelgaard/fenics/branches/dev/scripts/ffc", line 167, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/oelgaard/fenics/branches/dev/scripts/ffc", line 155, in main
    compile_form(ufd.forms, prefix, options)
  File "/home/oelgaard/fenics/branches/dev/ffc/compiler.py", line 133, in compile_form
    ir = compute_ir(preprocessed_form, form_data, options)
  File "/home/oelgaard/fenics/branches/dev/ffc/representation.py", line 50, in compute_ir
    ir_elements = [compute_element_ir(e, form_data) for e in form_data.unique_sub_elements]
  File "/home/oelgaard/fenics/branches/dev/ffc/representation.py", line 65, in compute_element_ir
    element = create_element(ufl_element)
  File "/home/oelgaard/fenics/branches/dev/ffc/fiatinterface.py", line 67, in create_element
    element = create_fiat_element(ufl_element)
  File "/home/oelgaard/fenics/branches/dev/ffc/fiatinterface.py", line 79, in create_fiat_element
    element = ElementClass(cell, ufl_element.degree())
  File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/lagrange.py", line 35, in __init__
    poly_set = polynomial_set.ONPolynomialSet( ref_el , degree )
  File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/polynomial_set.py", line 166, in __init__
    dv = expansion_set.tabulate( degree , dpts )
  File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/expansions.py", line 117, in tabulate
    psitilde_as = jacobi.eval_jacobi_batch(0,0,n,ref_pts)
  File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/jacobi.py", line 53, in eval_jacobi_batch
    result[1,:] = 0.5 * ( a - b + ( a + b + 2.0 ) * xsnew )
ValueError: setting an array element with a sequence.

Changed in fiat:
assignee: nobody → Robert Kirby (robert-c-kirby)
Changed in fiat:
status: New → Fix Committed
Revision history for this message
Garth Wells (garth-wells) wrote : Re: [Bug 504747] Re: eval_jacobi_batch crashes on interval

On Jan 11 2010, Robert Kirby wrote:

>** Changed in: fiat
> Status: New => Fix Committed
>
>

I don't see a change in the commit log. Has it been pushed?

Garth

Revision history for this message
Robert Kirby (robert-c-kirby) wrote :

oops...committed but did not push. Should be there now.

On Mon, Jan 11, 2010 at 11:49 AM, Garth Wells <email address hidden> wrote:

> On Jan 11 2010, Robert Kirby wrote:
>
> >** Changed in: fiat
> > Status: New => Fix Committed
> >
> >
>
> I don't see a change in the commit log. Has it been pushed?
>
> Garth
>
> --
> eval_jacobi_batch crashes on interval
> https://bugs.launchpad.net/bugs/504747
> You received this bug notification because you are a bug assignee.
>
> Status in FInite element Automatic Tabulator: Fix Committed
>
> Bug description:
> The following simple for crashes FIAT:
>
> element = FiniteElement("Lagrange", interval, 3)
>
> v = TestFunction(element)
> u = TrialFunction(element)
>
> a = inner(v, u)*dx
>
> File "/home/oelgaard/fenics/branches/dev/scripts/ffc", line 167, in
> <module>
> sys.exit(main(sys.argv[1:]))
> File "/home/oelgaard/fenics/branches/dev/scripts/ffc", line 155, in main
> compile_form(ufd.forms, prefix, options)
> File "/home/oelgaard/fenics/branches/dev/ffc/compiler.py", line 133, in
> compile_form
> ir = compute_ir(preprocessed_form, form_data, options)
> File "/home/oelgaard/fenics/branches/dev/ffc/representation.py", line 50,
> in compute_ir
> ir_elements = [compute_element_ir(e, form_data) for e in
> form_data.unique_sub_elements]
> File "/home/oelgaard/fenics/branches/dev/ffc/representation.py", line 65,
> in compute_element_ir
> element = create_element(ufl_element)
> File "/home/oelgaard/fenics/branches/dev/ffc/fiatinterface.py", line 67,
> in create_element
> element = create_fiat_element(ufl_element)
> File "/home/oelgaard/fenics/branches/dev/ffc/fiatinterface.py", line 79,
> in create_fiat_element
> element = ElementClass(cell, ufl_element.degree())
> File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/lagrange.py", line
> 35, in __init__
> poly_set = polynomial_set.ONPolynomialSet( ref_el , degree )
> File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/polynomial_set.py",
> line 166, in __init__
> dv = expansion_set.tabulate( degree , dpts )
> File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/expansions.py",
> line 117, in tabulate
> psitilde_as = jacobi.eval_jacobi_batch(0,0,n,ref_pts)
> File "/home/oelgaard/fenics/branches/fiat-new/FIAT_NEW/jacobi.py", line
> 53, in eval_jacobi_batch
> result[1,:] = 0.5 * ( a - b + ( a + b + 2.0 ) * xsnew )
> ValueError: setting an array element with a sequence.
>
>
>

Anders Logg (logg)
Changed in fiat:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.