[Dune] Strange code in testbasicgeometry.cc

Oliver Sander sander at mi.fu-berlin.de
Wed May 2 12:03:38 CEST 2012


Dear Dune,
when looking at the file testbasicgeometry.cc, I found the following
code right at the top:

template <class TestGeometry>
void testBasicGeometry(const TestGeometry& geometry,
                        typename TestGeometry::ctype expectedVolume,
                        bool expectedAffine, int &result)
{
     typedef typename TestGeometry::ctype ctype;

     if(expectedVolume == expectedVolume) {


That looks strange to me.  What is the purpose of that last line?
(Please don't tell me we are piping NaN into this to switch of
the test?)

thanks,
Oliver




More information about the Dune mailing list