← Back to team overview

dolfin team mailing list archive

Re: Coefficient setting the name of Function

 

2008/12/8 Anders Logg <logg@xxxxxxxxx>:
> On Mon, Dec 08, 2008 at 11:24:34AM +0100, Martin Sandve Alnæs wrote:
>> Coefficient sets the name of the Function assigned to it, I find that
>> counter-intuitive:
>>
>> MyForm a(...);
>> MyForm b(...);
>> Function u(V);
>> u.rename("myname", "mylabel");
>> a.u = u; // u gets name from a
>> b.w = u; // u gets name from b
>
> Maybe not intuitive, but I think it's good to have. I imagine the
> rename() function is rarely used, so if it can happen automatically,
> it can be a help in most circumstances.
>
> Maybe we could change it so that the name is only changed if it has
> not been set before?

I guess it couldn't anyone then.

--
Martin


Follow ups

References