dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #25278
Re: default form compiler options
-
To:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
From:
Anders Logg <logg@xxxxxxxxx>
-
Date:
Tue, 29 Nov 2011 20:53:28 +0100
-
Cc:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CAA4C66MZtdSfT6nn5B-bc2ooND16Q=FjJPtV0eOmzk8KqrRExw@mail.gmail.com>
-
User-agent:
Mutt/1.5.21 (2010-09-15)
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