MultilinearGeometry: method local fails when global point is not inside the element.

Every now and then one needs to check whether a global point is inside an element or not. The way to do this in DUNE is the following:

auto local = geometry.local( globalPoint );
auto refElem = referenceElement( geometry );

if( refElem.checkInside( local ) )
{
 // do something
}

This fails with MultilinearGeometry because in this case the Newton algorithm inside the local method won't converge and there is not max iteration criterion implemented.

Edited by Robert K