← Back to team overview

dolfin team mailing list archive

default form compiler options

 

I think that it used to be possible to set default form compiler
options easily, e.g.

  parameters["form_compiler"]["quadrature_degree"] = 1
  parameters["form_compiler"]["optimize"] = True
  parameters["form_compiler"]["eliminate_zeros"] = True

but this seem to work for specific settings only, e.g.

  parameters["form_compiler"]["quadrature_degree"] = 1
  parameters["form_compiler"]["optimize"] = True

works but

  parameters["form_compiler"]["quadrature_degree"] = 1
  parameters["form_compiler"]["optimize"] = True
  parameters["form_compiler"]["eliminate_zeros"] = True

doesn't.

I know I can pass a dictionary of options to assemble functions, but
it would be nice to be able to set defaults easily.

Garth


Follow ups