Skip to content
Snippets Groups Projects
Commit ebade644 authored by Peter Bastian's avatar Peter Bastian
Browse files

globalRefine() marks now leaf elements instead of maxlevel elements. This allows

to refine all elements of a locally refined mesh.

[[Imported from SVN: r2970]]
parent 8dcde83c
Branches
Tags
No related merge requests found
......@@ -622,8 +622,8 @@ void Dune::UGGrid < dim, dimworld >::globalRefine(int n)
for (int i=0; i<n; i++) {
// mark all entities for grid refinement
typename Traits::template Codim<0>::LevelIterator iIt = lbegin<0>(maxlevel());
typename Traits::template Codim<0>::LevelIterator iEndIt = lend<0>(maxlevel());
typename Traits::template Codim<0>::LeafIterator iIt = leafbegin<0>();
typename Traits::template Codim<0>::LeafIterator iEndIt = leafend<0>();
for (; iIt!=iEndIt; ++iIt)
mark(1, iIt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment