← Back to team overview

ufl team mailing list archive

Re: [noreply@xxxxxxxxxxxxx: [Branch ~ufl-core/ufl/main] Rev 1145: Made Form.*_domains into properties which emit]

 

On Mon, Jun 27, 2011 at 10:10:04AM +0200, Martin Sandve Alnæs wrote:
> On 27 June 2011 09:56, Anders Logg <logg@xxxxxxxxx> wrote:
> > On Thu, Jun 23, 2011 at 04:02:59PM +0200, Marie E. Rognes wrote:
> >> On 06/22/11 20:02, Martin Sandve Alnæs wrote:
> >> >Possibly, but this deprecation warning will tell users to change their code.
> >> >But since dolfin has been updated, maybe their code is already broken
> >> >if they use this?
> >>
> >> DOLFIN has been updated, and so the syntax
> >>
> >>     L.exterior_facet_domains = ...
> >>
> >> will not do anything sensible (I think ;-) )
> >>
> >> But one can still attach whatever one wants to a form, right? So we
> >> better make this change pretty clear.
> >
> > No, the __slots__ thing should prevent that.
>
> Now it shows:
>
> In [3]: a.exterior_facet_domains = 'foo'
> Deprecated: ufl.Form has no properties '*_domains'.
> To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).

Very nice!

--
Anders


References