← Back to team overview

ffc team mailing list archive

Re: Exposure of all FFC parameters to the PyDOLFIN interface

 

On Mon, May 02, 2011 at 09:49:22AM -0700, Johan Hake wrote:
> Hello!
>
> I just realized that there are a whole bunch of command line options to ffc:
>
>   -f foo
>
> which are not exposed in the parameter dict provided by FFC. This means
> that these are not available from the python interface of DOLFIN.
>
> Is this intentional?

Which are those?

Command-line parameters are handled by the script ffc as follows:

    parameters = default_parameters()

    ...

    elif opt == "-f":
        if len(arg.split("=")) == 2:
            (key, value) = arg.split("=")
                parameters[key] = value
            elif len(arg.split("==")) == 1:
                key = arg.split("=")[0]
                parameters[arg] = True

--
Anders


Follow ups

References