[Dune] [Dune-Commit] dune-grid r8001 - in trunk/dune/grid: genericgeometry/test utility/test

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Mon Apr 23 10:08:06 CEST 2012


Hi Christian,
the renaming was necessary because the GeometryType typedef was very 
misleading and it took me some minutes to figure out why 
GeometryType::id() was not found by the compiler.

Should I have split the commit into two commits?

Greets
Christoph


Am 23.04.2012 10:01, schrieb Christian Engwer:
> Hi Christoph,
>
>> Log:
>> Get rid of another two deprecation warnings.
>
> ...
>
>> Modified: trunk/dune/grid/genericgeometry/test/testgeo.cc
>> ===================================================================
>> --- trunk/dune/grid/genericgeometry/test/testgeo.cc	2012-04-21 13:07:55 UTC (rev 8000)
>> +++ trunk/dune/grid/genericgeometry/test/testgeo.cc	2012-04-23 05:15:51 UTC (rev 8001)
>> @@ -122,8 +122,8 @@
>
> ...
>
>> -    const unsigned int topologyId = GenericGeometry::topologyId( geoDune.type() );
>> +    const GeometryType gt = geoDune.type();
>
> If I spotted this correctly, you basically changed one single line to
> fix the warning, but renaming some types and variables lead to a
> 8-times larger patch. I understand that it sometime helps to rename
> types to understand the code, but in this case I think the code was
> quite readable and the renaming hides the actual fix quite
> efficiently.
>
> Christian




More information about the Dune mailing list