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:0 0 0 .8ex;border-left:1px #ccc solid;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>