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 class="Apple-tab-span" style="white-space:pre">          </span>typedef Dune::ALUSimplexGrid<dim,dim> Grid;</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>typedef Grid* GridPointer;</div><div> </div><div><span class="Apple-tab-span" style="white-space:pre">           </span>typedef Dune::GmshReader<Grid> GridReader;</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>typedef Dune::GridFactory<Grid> Factory;</div></div><div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">            </span>std::vector<int> boundaryid;</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>std::vector<int> elementid;</div><div><span class="Apple-tab-span" style="white-space:pre">            </span>GridReader gridreader;      </div><div><span class="Apple-tab-span" style="white-space:pre">         </span>Factory factory;</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>char ch;</div><div><span class="Apple-tab-span" style="white-space:pre">     </span></div><div><span class="Apple-tab-span" style="white-space:pre">             </span>gridreader.read(factory,gridfile,boundaryid,elementid,false,false);</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>GridPointer gridptr = factory.createGrid();</div><div><span class="Apple-tab-span" style="white-space:pre">          </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><div><br></div><div><br></div>
-- <br>Warm Regards,<br>Dhirendra Vaidya<br>VNIT Nagpur<br><br>
</div>