Re: [petsc-users] Is there easy to update the ghost value in the vector created using DMCreatLocalVector?

2019-01-16 Thread leejearl via petsc-users
Hi Matt,Thanks for you reply. If I use DMGlobalToLocal() to update the local vector from global vector.The value of cStart<=c On Tue, Jan 15, 2019 at 8:34 PM leejearl via petsc-users < > petsc-users@mcs.anl.gov> wrote: > > Hi all Petscer, > > > > > &

Re: [petsc-users] Is there easy to update the ghost value in the vector created using DMCreatLocalVector?

2019-01-16 Thread leejearl via petsc-users
quot;. > > > > This is my problem. I want to know how to implement it easily. Can > > you give me some advices? > > > > Thanks > > > > leejearl > > > > > > On Wed, 2019-01-16 at 08:07 -0500, Matthew Knepley wrote

[petsc-users] I suggest to create a demo code for the problem of "Get a value from global vector to a local processor"

2019-01-17 Thread leejearl via petsc-users
Hi all Petscer, I have ask helps for some questions. Thanks for the replies from developer. I have known more about the petsc. I have also sought helps in the mail lists, and I find that there are many subjects focused on such a problem. Some subjects are listed as follow

[petsc-users] How Can I scatter a global vector to a local vector without using DMGlobaltoLocalBegin/DMGlobaltoLocalEnd?

2019-01-15 Thread leejearl via petsc-users
Hi Matt, Thanks for your helps. I have another question, but I think I should ask the question in a new subject. leejearl > > Hi, Matt > > > > > > Hi, all Petscer: > > > > I am very sorry for disturbing you for my questions. > > > > > > > > > I like your questions. > > > > > > > > > > I

[petsc-users] Is there easy to update the ghost value in the vector created using DMCreatLocalVector?

2019-01-15 Thread leejearl via petsc-users
Hi all Petscer, I have a question about how to update the ghost value in the vector. The prolblem is as follow. 1. A dmplex dm object is created using DMPlexCreateFromFile 2. The dm is distributed using DMPlexDistribute, and the overlap is set as 1. 3. The ghosted dm is constructed by

[petsc-users] How Can I scatter a global vector to a local vector without using DMGlobaltoLocalBegin/DMGlobaltoLocalEnd?

2019-01-15 Thread leejearl via petsc-users
Hi, Matt > > Hi, all Petscer: > > I am very sorry for disturbing you for my questions. > > > I like your questions. > > > > I have a > > problems as follow. > > 1. A DMPlex object dm is created. > > 2. A global vector and a local vector are created using the > following > > routines

Re: [petsc-users] I suggest to create a demo code for the problem of "Get a value from global vector to a local processor"

2019-01-17 Thread leejearl via petsc-users
have better to > > generate > > a mesh with periodic topology structure. Is it right? > > Just to be clear, your method is perfectly fine. Mine is not more > efficient. I just think its easier.You can see periodic meshes > generated using DMPlexCreateBoxMesh(). > Thanks, &g

Re: [petsc-users] I suggest to create a demo code for the problem of "Get a value from global vector to a local processor"

2019-01-17 Thread leejearl via petsc-users
. Can you give me a more scalable procedure? Thanks. On Thu, 2019-01-17 at 06:43 -0500, Matthew Knepley wrote: > On Thu, Jan 17, 2019 at 3:34 AM leejearl via petsc-users < > petsc-users@mcs.anl.gov> wrote: > > Hi all Petscer, > > > > I have ask he

Re: [petsc-users] I suggest to create a demo code for the problem of "Get a value from global vector to a local processor"

2019-01-17 Thread leejearl via petsc-users
e better to generate a mesh with periodic topology structure. Is it right? > Thanks, > Matt > > Thanks. > > > > On Thu, 2019-01-17 at 06:43 -0500, Matthew Knepley wrote: > > > On Thu, Jan 17, 2019 at 3:34 AM leejearl via petsc-users < > &g

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-10 Thread leejearl via petsc-users
might be not distributed in the > > > > > > > > same local dm. Maybe I should ask that how > > > > > > > > can I implement the topology of the periodic boundary > > > > > > > > in demplex. > > > > > > >

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
dic boundary in dmplex. For a cell or face, > > > > > > > > the donor cell or face might be not distributed in the > > > > > > > > same local dm. Maybe I should ask that how > > > > > > > >

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
or example, with a > > > circle, each vertex is connectedto two neighbors. There are > > > example with periodic boundary conditions like SNES ex12. > > > Thanks, > > > Matt > > > > Thanks again for your kind reply. > > >

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
for your kind reply. leejearlOn Thu, 2018-12-06 at 12:02 -0500, Matthew Knepl > On Thu, Dec 6, 2018 at 9:47 AM leejearl via petsc-users < > petsc-users@mcs.anl.gov> wrote: > > Hi, Petsc developer: > > > > I have a problem for helps. > > > >

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
On Thu, 2018-12-06 at 12:02 -0500, Matthew Knepl > > > On Thu, Dec 6, 2018 at 9:47 AM leejearl via petsc-users < > > > petsc-users@mcs.anl.gov> wrote: > > > > Hi, Petsc developer: > > > > > > > > I have a problem for helps. &g

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
> > On Thu, 2018-12-06 at 12:02 -0500, Matthew Knepl > > > On Thu, Dec 6, 2018 at 9:47 AM leejearl via petsc-users < > > > petsc-users@mcs.anl.gov> wrote: > > > > Hi, Petsc developer: > > > > > > > > I have a problem f

Re: [petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
should ask that how > > > > > > can I implement the topology of the periodic boundary in > > > > > > demplex. > > > > > > > > > > Plex directly encodes a periodic topology. For example, with > > > > > a circle,

[petsc-users] How can I get the global integer ids in a label?

2018-12-06 Thread leejearl via petsc-users
Hi, Petsc developer: I have a problem for helps. There is a dmplex object, and I have distribute it use the routine DMPlexDistribute(). Then, I want to get the global integer ids in the label "Face Sets". The code is as follow, ierr = DMGetLabelIdIS(dm, "Face Sets",

[petsc-users] How Can I scatter a global vector to a local vector without using DMGlobaltoLocalBegin/DMGlobaltoLocalEnd?

2019-01-11 Thread leejearl via petsc-users
Hi, all Petscer: I am very sorry for disturbing you for my questions. I have a problems as follow. 1. A DMPlex object dm is created. 2. A global vector and a local vector are created using the following routines DMCreateGlobalVector and DMCreateLocalVector. 3. I have initialed global