[Dune] bug in referenceelement.position ??

Aleksejs Fomins aleksejs.fomins at lspr.ch
Wed Mar 4 13:55:05 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Dune,

I am encountering another bug with a gridcheck.hh, which I believe may be a fundamental bug.

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



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJU9wCpAAoJEDkNM7UOEwMZrdIQAJvkLDdSZyPbmyYUiVkJNEEN
ZrxBO8LTrfXVfV0HlKZ9aZ3gR/1rSLcjGwI2YpfRWm40Tl7Io5QJuBrxbBG31D/N
0bDNFyFLTR0XIkdyoETXlmEOKmNXJwN50zSw30Lh4QQFoA5/LIyj059/yJVdB06b
YXfBo654VktqCRcAzreVvOGsrF2FWD4v4x0YU19VHrXE3+LKJdN43WN/+v84xfyR
bs9NySC8+Ch+f20ARXQpRG4RftNhQmCOGKFR1sb6WJvHghl7nCcBI8SsUArm2WGU
Cb9fCiBuy26ifFv95f1p0HfSDkEIeX0wjSvX7r15R+s/+gwj05aoD+6vUx5xRR3M
RMHsmNjHCqmpLS4qq1HnRAJd3+WRcTFTqoBLQLffyv+O70DBqW4qpzqId1TkRILm
2DX3+FCIsiiiMVA0HphYpNffVqnBDDOpL0a+wkQghwBx63VpVBXgYE/fDYtg5J0d
ZZc6252yXCJc3Js5pEohXvoESl8sMibAUJ6mSRwqLFhPWtGFKN/AtjQnTYyJVlS7
fsfwcWPZGvDoVVmoKAf9yQtyAacToMFD89B5u1l7uNZPVVx0J/1lflbDtfCvrz8V
fE0zYEqzxuaoP5r7ATuUzgOIjr/htsF7U6l9rrkTKZvfxHAt7/sIQWILRPyjwQ44
ix0si76uorl0Ndg5mrDt
=TCfz
-----END PGP SIGNATURE-----




More information about the Dune mailing list