<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"><!--P {margin-top:0;margin-bottom:0;}--></style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Andrea.<br>
Have a look at<br>
dune-grid/dune/grid/utility/hierarchicsearch.hh<br>
I might do what your looking for - or at least tell you about the use of the<br>
relevant interface methods.<br>
Best<br>
Andreas<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF603773"><font color="#000000" face="Tahoma" size="2"><b>From:</b> dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org] on behalf of Sacconi, Andrea [a.sacconi11@imperial.ac.uk]<br>
<b>Sent:</b> 14 June 2013 14:53<br>
<b>To:</b> dune@dune-project.org<br>
<b>Subject:</b> [Dune] Tree structure of the grid and binary search<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hello everyone,
<div><br>
</div>
<div>I have a couple of questions concerning the grid:</div>
<div><br>
</div>
<div>1) suppose you have to implement a binary search of your grid. How can you get access from a given element (at a given level) to the children (_only_the_children) it has on the subsequent level? I tried to play with levelView or similar things, but I didn't
 get an answer.</div>
<div>2) if you have an initial macro-triangulation and you adapt the grid (performing both coarsening and refining), what happens to the tree structure? What about the levels of the new grid? Is there some kind of relation between the new grid elements and
 the level-0 elements of the grid, prior to the adapting phase?</div>
<div><br>
</div>
<div>Thanks for your kind help! <br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">Andrea<br>
__________________________________________________________<br>
<br>
Andrea Sacconi<br>
PhD student, Applied Mathematics<br>
AMMP Section, Department of Mathematics, Imperial College London,<br>
London SW7 2AZ, UK<br>
a.sacconi11@imperial.ac.uk<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>