dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #24070
Re: Multi-type parameters?
On Jul 6, 2011, at 1:54, Anders Logg <logg@xxxxxxxxx> wrote:
> I'm thinking of how to handle this bug:
>
> https://bugs.launchpad.net/ffc/+bug/787010
>
> I see two solutions:
>
> 1. Handle parameters with dynamical type in C++ (fairly easy to add).
Not sure I like this. It is nice to have a strongly typed regime here.
> 2. Not use parameters that may change type in FFC (from "auto" to an
> int).
Is it possible to store the parameter As an int internally in FFC, -1 for auto, and then add logic to the parsing of this variable so 'auto' becomes -1?
Did that make sense?
Johan
> --
> Anders
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
Follow ups
References