ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #01681
Re: FFC/jit options
On Wed, Jul 16, 2008 at 06:01:24PM +0200, Kristian Oelgaard wrote:
> Hi,
>
> Why does the jit compiler use pop() when extracting options? e.g.,
>
> representation = options.pop("representation", FFC_REPRESENTATION)
>
> this means that if I do:
>
> def compile_form(form, options):
> (compiled_form, module, form_data) = jit(form, options)
>
> options = {"representation":"quadrature"}
>
> for form in forms:
> compile_form(form, options)
>
> the second time I call jit options = {} which is clearly not what I want.
>
> Kristian
Ooops. Not my fault, I just merged it. :-)
See if it looks better now.
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References