← Back to team overview

dolfin team mailing list archive

Re: Introduce a global Time class

 

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.

--
Anders


Follow ups

References