[Dune] Global refine longest edge

Agnese, Marco m.agnese13 at imperial.ac.uk
Tue Mar 4 12:40:46 CET 2014


Hi Asbjørn,
I made a mistake before: I was calling the function after the grid creation and not before.
Thank you very much,
Marco. 
________________________________________
From: Asbjørn Nilsen Riseth [anriseth at gmail.com]
Sent: Monday, March 03, 2014 6:23 PM
To: Agnese, Marco
Cc: dune at dune-project.org
Subject: Re: [Dune] Global refine longest edge

Hi Marco,

have you tried to call Dune::GridFactory< AlbertaGrid<dim, dimworld> >::markLongestEdge() ?

In .dgf files, this can be done by inserting
#
GridParameter
refinementedge longest
#


Asbjørn


On 3 March 2014 18:16, Agnese, Marco <m.agnese13 at imperial.ac.uk<mailto:m.agnese13 at imperial.ac.uk>> wrote:
Hello DUNEers,
when I have a 2D grid created manually with the grid factory, how can I set to refine by splitting the longest edge?
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).
Thank you very much,
best regards,
Marco Agnese.
_______________________________________________
Dune mailing list
Dune at dune-project.org<mailto:Dune at dune-project.org>
http://lists.dune-project.org/mailman/listinfo/dune




More information about the Dune mailing list