← Back to team overview

ffc team mailing list archive

FFC/jit options

 


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


Follow ups