<div dir="ltr">Hi Marco,<div><br></div><div>have you tried to call Dune::GridFactory< AlbertaGrid<dim, dimworld> >::markLongestEdge() ?</div><div><br></div><div>In .dgf files, this can be done by inserting</div>
<div><div>#</div><div>GridParameter</div><div>refinementedge longest</div><div>#</div></div><div><br></div><div><br></div><div>Asbjørn</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 March 2014 18:16, Agnese, Marco <span dir="ltr"><<a href="mailto:m.agnese13@imperial.ac.uk" target="_blank">m.agnese13@imperial.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello DUNEers,<br>
when I have a 2D grid created manually with the grid factory, how can I set to refine by splitting the longest edge?<br>
If the grid manager is ALUGrid everything works fine (I suppose that ALUGrid automatically performs some check to choose the longest edge ) but if the grid manager is ALBERTA the splitting is "random" (the edge to split is chosen accordingly to the insertion order of the vertices in the connectivity vector pass to the grid factory).<br>
Thank you very much,<br>
best regards,<br>
Marco Agnese.<br>
_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
</blockquote></div><br></div>