On 02/15/2013 12:13 PM, Anders Logg wrote:
> On Fri, Feb 15, 2013 at 12:11:01PM +0100, Johan Hake wrote:
>> It would serve my need, but as Marting says what if a an Expression need
>> several time scales, aso.
>> If t here was a scalar Constant and passed to Expressions which needed
>> it, we would have more or less the same solution. However it would be
>> more flexible.
>> There might for example be other global variables which also should be
>> updated.
> 
> In that case, one could think of some fancy class GlobalConstant that
> can be used for any such constant and which keeps track of who uses
> the constant so it can be updated in a single place.

I think you miss the point. By using the Constant directly in the
Expression they are automatically updated when you change the value of
the constant.

Johan


_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to