[Dune] bug in referenceelement.position ??

Oliver Sander sander at igpm.rwth-aachen.de
Wed Mar 4 14:05:10 CET 2015


Am 04.03.2015 um 13:55 schrieb Aleksejs Fomins:
> Dear Dune,
> 
> I am encountering another bug with a gridcheck.hh, which I believe may be a fundamental bug.

This test passes for quite a number of grids, so first my first guess is that the bug is in
your code.  Did you try valgrind?

> 
> The bug:
> dune/grid/test/checkgeometry.hh
> uses mydim=0 and calls the method checkGeometry() from
> dune/geometry/test/checkgeometry.hh
> which constructs
> const ReferenceElement< ctype, mydim > &refElement = ReferenceElements< ctype, mydim >::general(type);
> and then calls
> refElement.position( i, mydim )
> 
> If you try to cout the position, you get empty string " ". If you try to access its entities, you get segmentation fault.
> 
> Is this expected?



> 
> Regards,
> Aleksejs
> 
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150304/6f059192/attachment.sig>


More information about the Dune mailing list