← Back to team overview

dolfin team mailing list archive

Re: TimeDependent and Function

 

> On Mon, Dec 03, 2007 at 08:18:54AM +0000, Garth N. Wells wrote:
>> Johan Jansson wrote:
>> > Hi!
>> >
>> > Function used to inherit from TimeDependent, but not anymore. Is there
>> > any particular reason for this, or can we add it back? Perhaps the
>> > thinking was to avoid multiple inheritance?
>> >
>>
>> I don't think that there was a particular reason for removing it other
>> than making Function as simple as possible. When creating my own
>> Function, I just give it the address of the time variable.
>>
>> Garth
>
> Yes, the Function class started to get out of hand in terms of its
> complexity so we removed TimeDependent to make it simpler. A Function
> is now something that depends on x on a Mesh.
>
> If we need time series etc, maybe we can implement something like
> TimeSeries which is a sequence of Functions?
>
> --
> Anders

Yes, maybe that is a better idea. That would conform better with the vtk
representation of our output for Functions.

/Johan

> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>




References