<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That depends on the grid manager.  UGGrid and AlbertaGrid will ensure
that<br>
automatically, ALUGrid will not (and that's not a bug).<br>
<br>
--<br>
Oliver<br>
<br>
Am 26.12.2010 12:41, schrieb S. Swayamjyoti:
<blockquote
 cite="mid:AANLkTinQw8b4XGhBLTGcrOTDBM4F8+Aaa-Xzcpo8C1DA@mail.gmail.com"
 type="cite">Now, will that ensure that the refined grids are <b>conforming</b>
with the other level elements?<br>
  <br>
  <div class="gmail_quote">On Sun, Dec 26, 2010 at 12:36 PM, Jö Fahlke <span
 dir="ltr"><<a moz-do-not-send="true" href="mailto:jorrit@jorrit.de">jorrit@jorrit.de</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am
Sun, 26. Dec 2010, 06:18:46 +0100 schrieb S. Swayamjyoti:<br>
    <div>
    <div class="h5">> I am using DUNE for creating a grid over which
I will apply Finite Element<br>
> Methods. I have created a structured 3D grid of cubes. Now, I want
to refine<br>
> the cubes at the center of the domain. I require fine meshing for
cubes at<br>
> the center while course meshing is OK as we go outward from the
center.<br>
> Course meshing away from the center will also save me
computational cost.<br>
><br>
> Could someone please suggest how to refine the grids at the center
- if<br>
> there is a local refinement class? Please also suggest the header
file to<br>
> include for the same.<br>
    <br>
    </div>
    </div>
You have to iterate over the elements (the codim-0 entities) of the<br>
LeafGridView.  For each element that you want to refine, call
grid.mark(1,<br>
elem).  Once Iteration is done, call grid.preAdapt(), grid.adapt(), and<br>
grid.postAdapt().  Repeat until you are satisfied with the grid.<br>
    <br>
If you know a priori that a certain element can be refined n times
uniformly,<br>
you can also tell that to grid.mark() by calling grid.mark(n, element)<br>
instead.<br>
    <br>
Bye,<br>
Jö.<br>
    <font color="#888888"><br>
--<br>
Sie können die Unversität jetzt ausschalten.<br>
    </font><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
    <br>
iQIVAwUBTRco1emx9CKgc0OWAQjG5RAA2MkRdSxkVRsNftEZj5chH21/QQ3PynzF<br>
m7wpygqbVfJv1HXzccy+X5PeKT2fsjU5hcBAir3Trd2B2B8OULjrcf9u3SP4fSgA<br>
4zCidHKzq0Fw+x1S7v+TLkenxMLlCaBtYflLWAC0EK65Utlrrn5e2d5VhBthcEEN<br>
RIHN538dVFxBYMOOCLzUAIZ84Cpvxhg14Tu+d3x/zNXytsOo3QM8FA/ekGIZZXOB<br>
v6pApN3mFjRrDD9u2b5lETmNNxP3WQkb3QF+n6csXHcJQ6Y7eTQkfjhP0OZlisAf<br>
5fo4TNe+Q2R2yAbOlwh+0BMG8yUL4IcEY1HZ+8FFathCpnNaJcRQkDojMDHkGIad<br>
myje8E6hJFKXpOmNTm7aOIy/xJrg1cxZCPk5Lfa3TMPafdnRk3xZSw7j4CoACkTO<br>
l03+wZvTO7yjmDSIkbXLwduUHPAgGDMPQ6j0sykwm/ipYPdbj0RzhxKBWKfGAw50<br>
5IgFXl4GDmGh83AEvIMNhgCBA6/p7T+GShibQcwiMhidkqsWDHW/8rJjgErZK8PM<br>
mSYXfEfeO3PUvWvV3aRqEohMx1wOnsD0biYK/f3b6AbnNna1VTmDwgFb9OzmBaJQ<br>
5K8haH285fGty8BhtUUU0e4bpgP2lQTJCcPcuw6u/TvpHu8lVEqf29WcPfloca5P<br>
2kcTkKP210M=<br>
=hWEp<br>
-----END PGP SIGNATURE-----<br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
  </pre>
</blockquote>
<br>
</body>
</html>