Re: [petsc-users] partition of DM Vec entries

2016-10-15 Thread Sang pham van
Hi Dave, Thank you very much for the useful examples! I have constant smoothing length in my problem, so it fits DMSWARM very well, I am happy to be a beta tester! Any question while using DSWARM, I will drop into this thread. Best, On Sat, Oct 15, 2016 at 12:29 PM, Dave May

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Dave May
On 15 October 2016 at 06:17, Dave May wrote: > > > On Saturday, 15 October 2016, Barry Smith wrote: > >> >> Unless the particles are more or less equally distributed over the the >> entire domain any kind of "domain decomposition" approach is

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Barry Smith
This sounds great. > On Oct 15, 2016, at 12:17 AM, Dave May wrote: > > > > On Saturday, 15 October 2016, Barry Smith wrote: > > Unless the particles are more or less equally distributed over the the > entire domain any kind of "domain

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Dave May
On Saturday, 15 October 2016, Barry Smith wrote: > > Unless the particles are more or less equally distributed over the the > entire domain any kind of "domain decomposition" approach is questionably > for managing the particles. Otherwise certain processes that have

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Sang pham van
Hi Barry, Thank you very much for your suggestions and comments. I am very appreciated that! WIth my best regards, On Sat, Oct 15, 2016 at 10:13 AM, Barry Smith wrote: > > Unless the particles are more or less equally distributed over the the > entire domain any kind of

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Barry Smith
Unless the particles are more or less equally distributed over the the entire domain any kind of "domain decomposition" approach is questionably for managing the particles. Otherwise certain processes that have domains that contain most of the particles will have a great deal of work, for

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Sang pham van
Hi Barry, Thank your for your answer. I am writing a parallel code for smoothed-particle hydrodynamic, in this code I used a DMDA background mesh for management of particles. Each DMDA cell manages a number of particles, the number can change in both time and cell. In each time step, I need to

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Barry Smith
Thanks, the question is very clear now. For DMDA you can use DMDAGetNeighborsRank() to get the list of the (up to) 9 neighbors of a processor. (Sadly this routine does not have a manual page but the arguments are obvious). For other DM I don't think there is any simple way to get this

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Sang pham van
Hi Barry, In 2 processes case, the problem is simple, as I know all ghost cells of partition 0 are updated from partition 1. However, in the case of many processes, how do I know from which partitions ghost cells of partition 0 are updated? In other words, How can I know neighboring partitions of

Re: [petsc-users] partition of DM Vec entries

2016-10-14 Thread Barry Smith
> On Oct 14, 2016, at 8:50 PM, Sang pham van wrote: > > Hi, > > I am using DM Vec for a FV code, for some reasons, I want to know partition > of all ghost cells of a specific partition. is there a way do that? Could you please explain in more detail what you want, I