[Dune-devel] Test failure in fvectortest (dune-common)

Markus Blatt markus at dr-blatt.de
Mon Apr 14 10:42:50 CEST 2014


On Mon, Apr 14, 2014 at 08:47:24AM +0200, Oliver Sander wrote:
> The reason is simple: line 307 calls FieldVectorMainTest for a 0-size FieldVector, but
> FieldVectorMainTest accesses the first entry of the vector it tests (line 28).
> What puzzles me is that the code has been in there since at least 2010.  Why didn't it
> crash before?

If my memory does not fail me, then even for a zero sized vector we
allocated an array with at least one element. As of 2.2 this was done
in Dune::Array. Since we now use std::array this might not hold any
more.

Markus

-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858  Fax: +49 (0)322 1108991658 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20140414/48d38239/attachment.sig>


More information about the Dune-devel mailing list