← Back to team overview

dolfin team mailing list archive

Re: default form compiler options

 

On Tue, Nov 29, 2011 at 05:49:05PM +0000, Garth N. Wells wrote:
> 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.

I think we agreed that only common (form compiler agnostic) options
should be in the DOLFIN database and any other special options must be
passed to the specific compiler.

--
Anders


References