[Dune] Local Refinement - elementids are not assigned to newly generated mesh elements
Dedner, Andreas
A.S.Dedner at warwick.ac.uk
Fri May 18 09:33:28 CEST 2012
Hi,
The grid does not know about the data and can not extend it to
new elements.
You are holding the data (getting it from the factory) and you are
responsible for prolongation to the new grid elements.
Best
Andreas
________________________________
From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of DHIRENDRA VAIDYA [dhirendra22121987 at gmail.com]
Sent: Friday, May 18, 2012 5:32 AM
To: dune at dune-project.org
Subject: Re: [Dune] Local Refinement - elementids are not assigned to newly generated mesh elements
dune version is 2.1.1
On Fri, May 18, 2012 at 10:02 AM, DHIRENDRA VAIDYA <dhirendra22121987 at gmail.com<mailto:dhirendra22121987 at gmail.com>> wrote:
Hi,
I am generating mesh with gmsh and reading it with gmshreader and gridfactory, where every element is assigned an element id
typedef Dune::ALUSimplexGrid<dim,dim> Grid;
typedef Grid* GridPointer;
typedef Dune::GmshReader<Grid> GridReader;
typedef Dune::GridFactory<Grid> Factory;
std::vector<int> boundaryid;
std::vector<int> elementid;
GridReader gridreader;
Factory factory;
char ch;
gridreader.read(factory,gridfile,boundaryid,elementid,false,false);
GridPointer gridptr = factory.createGrid();
const Grid& grid = *gridptr;
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.
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.
--
Warm Regards,
Dhirendra Vaidya
VNIT Nagpur
--
Warm Regards,
Dhirendra Vaidya
VNIT Nagpur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120518/9d851d31/attachment.htm>
More information about the Dune
mailing list