[Dune] Announcement: upcoming branch for the Dune 2.1 release

Jö Fahlke jorrit at jorrit.de
Thu Feb 17 13:47:16 CET 2011


Am Wed, 16. Feb 2011, 22:06:50 +0100 schrieb Jö Fahlke:
> As to SGrid: We created an SGrid as in
> 
>    int n[1] = { 5 };
>    double h[1] = { 1 };
>    SGrid<1,1> g(n, h);
>    g.globalRefine(1);
>    const LeafView &gv = g.leafView();
>    std::cout << gv.indexSet().size(0) << std::endl; // expect 10 Elements
>    std::cout << gv.indexSet().size(1) << std::endl; // expect 11 Vertices
> 
> But instead of 10 and 11 we got 0 and 1, so something is majorly broken.  This
> is probably related to FS#869.

Maybe I should quickly add a further lead: in the original code, we allocated
a vector by something like

  std::vector<int> v(gv.indexSet().size(0),0);

valgrind complained about "conditional jump or move depends on uninitialized
variables" somewhere in the contructor-call for v, which IMHO points to the
return value of gv.indexSet().size(0) being uninitialized.

Bye,
Jö.

-- 
Sie können die Unversität jetzt ausschalten.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110217/2c86472a/attachment.sig>


More information about the Dune mailing list