[Dune] Returning Geometries As Objects
Andreas Dedner
A.S.Dedner at warwick.ac.uk
Tue Feb 7 13:06:45 CET 2012
I think Martin already pointed this out but the situation with the new
Geometry is not really different then that of the intersection
iteration, am I right?
Both would return a value and it is not clear how long they life, I
think at least that there is no guarantee for the intersection iterator.
So the question of lifetime has to be asked a bit more general perhaps.
For example if we start returning index set by value (we discussed that
on the last meeting I think) then the same question will arise again.
Andreas
On 07/02/12 10:56, Oliver Sander wrote:
> This pretty much exactly reflects my view. I don't think I want the
> reference feature in there either. A variable that looks like an
> object but is in fact a reference is a big violation of the principle
> of least surprise. To me, the difficult-to-find bugs that lurk here
> are far more serious than potential speed loss.
>
> Concerning the speed loss: are the measurements of how much loss to
> expect? And can that not be mitigated in the calling code by making
> sure to call each geometry-Method only once?
>
> best,
> Oliver
>
>>
>> I'm against a merge, unless we agree to disable the reference feature
>> before the next release. Yes, this will require updates in all grid
>> implementations, but I think it is necessary to make this change show
>> its full potential and to actually value all the work and time you
>> spent here.
>>
>> If we can agree on this, I have no furthe objections regarding a
>> merge. I think it is well enough tested to actually do a merge. My
>> main concern is about adding undesired features which we (might) have
>> to deal with for an unforseable time.
>>
>> And "we agree" does not necessarily require a formal vote. I think it
>> just means that those people involved in (core) grid implementations
>> have to agree. I, for my part, am willing to do add the necessary
>> changes. Now we only need an opinion from Robert and Oliver [assuming
>> that you actually want to use you new feature ;-)].
>>
>> Cheers
>> Christian
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
More information about the Dune
mailing list