ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #01969
Re: [noreply@xxxxxxxxxxxxx: [Branch ~ufl-core/ufl/main] Rev 1145: Made Form.*_domains into properties which emit]
On 27. juni 2011, at 10:10, Martin Sandve Alnæs <martinal@xxxxxxxxx> 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.
Aha, neat :)
--
Marie
>
> 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).
>
>
> Martin
References