[Dune-devel] [Dune-Commit] [Commit] dune-grid - 8b80205: [BUGFIX] Fix nasty bug introduced during cleanup
Oliver Sander
sander at igpm.rwth-aachen.de
Mon Oct 21 17:44:30 CEST 2013
Hi Dominic,
apologies for the bug -- I owe you a drink.
You may want to add a comment line stating why push_back must not be used here.
The reason is just not obvious at all.
Cheers,
Oliver
>
> // add level
> - _levels.push_back( makelevel(_levels.size(),newcoords,_periodic,o_interior,overlap) );
> + _levels.resize(_levels.size()+1);
> + _levels.back() = makelevel(_levels.size()-1,newcoords,_periodic,o_interior,overlap);
>
> setsizes();
> indexsets.push_back( make_shared<YaspIndexSet<const YaspGrid<dim>, false > >(*this,maxLevel()) );
>
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20131021/1b47762c/attachment.sig>
More information about the Dune-devel
mailing list