Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-08 Thread Rongliang Chen
Hi Lawrence and Matt, Many thanks for your help. Best regards, Rongliang On 06/08/2016 04:36 PM, Matthew Knepley wrote: On Wed, Jun 8, 2016 at 5:45 AM, Rongliang Chen > wrote: Hi Matt, I tried your suggestions but I still can not get

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-08 Thread Matthew Knepley
On Wed, Jun 8, 2016 at 5:45 AM, Rongliang Chen wrote: > Hi Matt, > > I tried your suggestions but I still can not get the refined Vertex Sets. > What I am doing looks like this: > --- > if (!rank) { > Put

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-08 Thread Lawrence Mitchell
> On 8 Jun 2016, at 06:45, Rongliang Chen wrote: > > Hi Matt, > > I tried your suggestions but I still can not get the refined Vertex Sets. > What I am doing looks like this: > --- > if (!rank) { >

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Rongliang Chen
Hi Matt, I tried your suggestions but I still can not get the refined Vertex Sets. What I am doing looks like this: --- if (!rank) { DMPlexSetLabelValue(dm, "Vertex Sets", xx, xx) DMPlexSetLabelValue(dm, "Face Sets", xx,

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Rongliang Chen
Hi Matt, Thank you very much. Best, Rongliang On 06/08/2016 01:53 AM, Matthew Knepley wrote: On Tue, Jun 7, 2016 at 5:18 PM, Rongliang Chen > wrote: Hi Matt, I know how to label vertex (ex_get_node_set) and face (ex_get_side_set),

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Matthew Knepley
On Tue, Jun 7, 2016 at 5:18 PM, Rongliang Chen wrote: > Hi Matt, > > I know how to label vertex (ex_get_node_set) and face (ex_get_side_set), > but do not know how to label the edge for a 3D mesh. Can you give me an > example for that? > You can label the faces, and then

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Rongliang Chen
Hi Matt, I know how to label vertex (ex_get_node_set) and face (ex_get_side_set), but do not know how to label the edge for a 3D mesh. Can you give me an example for that? Thanks, Rongliang - Rongliang Chen, PhD Associate Professor Laboratory for Engineering and

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Matthew Knepley
On Tue, Jun 7, 2016 at 3:05 PM, Rongliang Chen wrote: > Hi Matt, > > Thanks for your reply. > > Yes, I only labels the vertex because I am doing the finite element method > where I only need the vertex label. Do you mean that I need to label the > faces and get the vertex

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Rongliang Chen
Hi Matt, Thanks for your reply. Yes, I only labels the vertex because I am doing the finite element method where I only need the vertex label. Do you mean that I need to label the faces and get the vertex label from the face label? Thanks, Rongliang On 06/07/2016 09:51 PM, Matthew

Re: [petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Matthew Knepley
On Tue, Jun 7, 2016 at 10:09 AM, Rongliang Chen wrote: > Dear All, > > I am using the DMRefine_Plex to refine a mesh. In the coarse mesh, it has > a label "Vertex Sets" to mark the boundary nodes. I found that the > DMRefine_Plex did not refine this label. > > For example, in

[petsc-users] How to refine the Vertex Sets in DMPlex

2016-06-07 Thread Rongliang Chen
Dear All, I am using the DMRefine_Plex to refine a mesh. In the coarse mesh, it has a label "Vertex Sets" to mark the boundary nodes. I found that the DMRefine_Plex did not refine this label. For example, in the coarse mesh, there are 100 nodes on the boundary, that is the number of nodes