Re: [petsc-users] Global Numbering

2018-03-21 Thread Mohammad Hassan Baghaei
Yeah! I think! You are completely right! Thanks for your suggestion. I would definitely look at them! Thanks Amir From: Matthew Knepley [mailto:knep...@gmail.com] Sent: Thursday, March 22, 2018 2:25 AM To: Mohammad Hassan Baghaei Cc: PETSc Subject: Re: [petsc-users] Global Numbering

Re: [petsc-users] Global Numbering

2018-03-21 Thread Matthew Knepley
Knepley [mailto:knep...@gmail.com] > *Sent:* Thursday, March 22, 2018 1:45 AM > *To:* Mohammad Hassan Baghaei > *Cc:* PETSc > *Subject:* Re: [petsc-users] Global Numbering > > > > On Wed, Mar 21, 2018 at 1:28 PM, Mohammad Hassan Baghaei < > mhbagh...@mail.sjtu.edu.cn> w

Re: [petsc-users] Global Numbering

2018-03-21 Thread Mohammad Hassan Baghaei
: Mohammad Hassan Baghaei Cc: PETSc Subject: Re: [petsc-users] Global Numbering On Wed, Mar 21, 2018 at 1:28 PM, Mohammad Hassan Baghaei mailto:mhbagh...@mail.sjtu.edu.cn> > wrote: I am trying to fill a vector based on global coordinate. You can see how this might be too vague for me to

Re: [petsc-users] Global Numbering

2018-03-21 Thread Matthew Knepley
haei > *Cc:* PETSc > *Subject:* Re: [petsc-users] Global Numbering > > > > On Wed, Mar 21, 2018 at 8:18 AM, Mohammad Hassan Baghaei < > mhbagh...@mail.sjtu.edu.cn> wrote: > > Hello > > I am trying to create a global vector of coordinates based on the > parall

Re: [petsc-users] Global Numbering

2018-03-21 Thread Mohammad Hassan Baghaei
, March 21, 2018 10:38 PM To: Mohammad Hassan Baghaei Cc: PETSc Subject: Re: [petsc-users] Global Numbering On Wed, Mar 21, 2018 at 8:18 AM, Mohammad Hassan Baghaei mailto:mhbagh...@mail.sjtu.edu.cn> > wrote: Hello I am trying to create a global vector of coordinates based

Re: [petsc-users] Global Numbering

2018-03-21 Thread Matthew Knepley
On Wed, Mar 21, 2018 at 8:18 AM, Mohammad Hassan Baghaei < mhbagh...@mail.sjtu.edu.cn> wrote: > Hello > > I am trying to create a global vector of coordinates based on the > parallelized dm. I find it really hard to work with the local numbering, > how can I manage to create a kind of numbering on

[petsc-users] Global Numbering

2018-03-21 Thread Mohammad Hassan Baghaei
Hello I am trying to create a global vector of coordinates based on the parallelized dm. I find it really hard to work with the local numbering, how can I manage to create a kind of numbering on global level so that I could easily access to the nodes based on the new numbering. Thanks for your tim

[petsc-users] Global numbering obtained via ISPartitioningToNumbering is inconsistent with the partitioning indexset

2012-04-09 Thread Jed Brown
On Mon, Apr 9, 2012 at 17:25, Mohammad Mirzadeh wrote: > Just to make sure though, is my assumption on the natural ordering of > PETSc correct? Yes, but please don't write code that depends on that. It's plenty easy to query the local size or the sizes/starts of other processes. --

[petsc-users] Global numbering obtained via ISPartitioningToNumbering is inconsistent with the partitioning indexset

2012-04-09 Thread Mohammad Mirzadeh
Thanks Jed for the advice. Actually I looked at the code and I think this was the only place I had made this implicit assumption (but the most important place). As a matter of fact, I make my vectors layout according to the AO that I get from partitioning. I think my main mistake was that I had ass

[petsc-users] Global numbering obtained via ISPartitioningToNumbering is inconsistent with the partitioning indexset

2012-04-09 Thread Barry Smith
On Apr 9, 2012, at 5:06 PM, Mohammad Mirzadeh wrote: > Hi, > > I am using 'ISPartitioningToNumbering' to generate new global numbering from > a partitioning indexset and I'm baffled at the following situation. I'm > debugging my code on a simple grid consisting of 81 grid points partitioned

[petsc-users] Global numbering obtained via ISPartitioningToNumbering is inconsistent with the partitioning indexset

2012-04-09 Thread Mohammad Mirzadeh
Aaah! Thanks Barry. Just to make sure though, is my assumption on the natural ordering of PETSc correct? Thanks On Mon, Apr 9, 2012 at 3:10 PM, Barry Smith wrote: > > On Apr 9, 2012, at 5:06 PM, Mohammad Mirzadeh wrote: > > > Hi, > > > > I am using 'ISPartitioningToNumbering' to generate new g

[petsc-users] Global numbering obtained via ISPartitioningToNumbering is inconsistent with the partitioning indexset

2012-04-09 Thread Mohammad Mirzadeh
Hi, I am using 'ISPartitioningToNumbering' to generate new global numbering from a partitioning indexset and I'm baffled at the following situation. I'm debugging my code on a simple grid consisting of 81 grid points partitioned among two processes. When I look into the partitioning indexset (i.e