<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">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,<br>
<br>
The grid does not know about the data and can not extend it to<br>
new elements.<br>
You are holding the data (getting it from the factory) and you are<br>
responsible for prolongation to the new grid elements.<br>
<br>
Best<br>
Andreas<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF416814"><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 DHIRENDRA VAIDYA [dhirendra22121987@gmail.com]<br>
<b>Sent:</b> Friday, May 18, 2012 5:32 AM<br>
<b>To:</b> dune@dune-project.org<br>
<b>Subject:</b> Re: [Dune] Local Refinement - elementids are not assigned to newly generated mesh elements<br>
</font><br>
</div>
<div></div>
<div>dune version is 2.1.1<br>
<br>
<div class="gmail_quote">On Fri, May 18, 2012 at 10:02 AM, DHIRENDRA VAIDYA <span dir="ltr">
<<a href="mailto:dhirendra22121987@gmail.com" target="_blank">dhirendra22121987@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,
<div><br>
</div>
<div>I am generating mesh with gmsh and reading it with gmshreader and gridfactory, where every element is assigned an element id</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><span style="white-space: pre-wrap;"></span>typedef Dune::ALUSimplexGrid<dim,dim> Grid;</div>
<div><span style="white-space: pre-wrap;"></span>typedef Grid* GridPointer;</div>
<div> </div>
<div><span style="white-space: pre-wrap;"></span>typedef Dune::GmshReader<Grid> GridReader;</div>
<div><span style="white-space: pre-wrap;"></span>typedef Dune::GridFactory<Grid> Factory;</div>
</div>
<div>
<div><br>
</div>
<div>
<div><span style="white-space: pre-wrap;"></span>std::vector<int> boundaryid;</div>
<div><span style="white-space: pre-wrap;"></span>std::vector<int> elementid;</div>
<div><span style="white-space: pre-wrap;"></span>GridReader gridreader; </div>
<div><span style="white-space: pre-wrap;"></span>Factory factory;</div>
<div><span style="white-space: pre-wrap;"></span>char ch;</div>
<div><span style="white-space: pre-wrap;"></span></div>
<div><span style="white-space: pre-wrap;"></span>gridreader.read(factory,gridfile,boundaryid,elementid,false,false);</div>
<div><span style="white-space: pre-wrap;"></span>GridPointer gridptr = factory.createGrid();</div>
<div><span style="white-space: pre-wrap;"></span>const Grid& grid = *gridptr;</div>
</div>
<div><br>
</div>
<div>then I am locally refining grid with mark and adapt. Now the newly generated elements are not assigned elementids of its parent elements. I find it logical to preserve elementids of parent elements.</div>
<div><br>
</div>
<div>Also in function mark(refCount, entity), refCount is not working. even if you put refCount>1 mark () marks element with 1. I reported this earlier but didnt get reply.</div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div><br>
</div>
-- <br>
Warm Regards,<br>
Dhirendra Vaidya<br>
VNIT Nagpur<br>
<br>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Warm Regards,<br>
Dhirendra Vaidya<br>
VNIT Nagpur<br>
<br>
</div>
</div>
</div>
</body>
</html>