dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #00922
Re: Eigenvalues and time-dependent bc's
Quoting Anders Logg <logg@xxxxxxxxx>:
> Maybe we could add to BoundaryCondition and Function a member function
> that can be called to connect any object to a given real t. Something
> like
>
> class Function
> {
> public:
>
> void synchronize(const real& t)
> {
> this->t = &t;
> }
>
> private:
>
> const real* t;
>
> }
>
> Then in a time-stepping loop, one can keep a variable t and do
>
> t += k;
>
> and all synchronized Functions and BoundaryConditions will be
> automatically updated.
>
> In addition, one could create a base class Synchronizable and put the
> functionality in there so we don't have to duplicated. Then Function
> and BoundaryCondition just inherit from Synchronizable.
>
Any objections to a new base class "Synchronizable" or "Time" (name
suggestions?) from which BoundaryCondition and Function derive in order to keep
track of time?
Garth
References