Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2023-01-12 Thread Matteo Semplice
Il 23/12/22 17:14, Matthew Knepley ha scritto: On Thu, Dec 22, 2022 at 3:08 PM Matteo Semplice wrote: Il 22/12/22 20:06, Dave May ha scritto: On Thu 22. Dec 2022 at 10:27, Matteo Semplice wrote: Dear Dave and Matt,     I am really dealing with two different

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-23 Thread Matthew Knepley
On Thu, Dec 22, 2022 at 3:08 PM Matteo Semplice < matteo.sempl...@uninsubria.it> wrote: > > Il 22/12/22 20:06, Dave May ha scritto: > > > > On Thu 22. Dec 2022 at 10:27, Matteo Semplice < > matteo.sempl...@uninsubria.it> wrote: > >> Dear Dave and Matt, >> >> I am really dealing with two differ

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Dave May
On Thu, 22 Dec 2022 at 12:08, Matteo Semplice wrote: > > Il 22/12/22 20:06, Dave May ha scritto: > > > > On Thu 22. Dec 2022 at 10:27, Matteo Semplice < > matteo.sempl...@uninsubria.it> wrote: > >> Dear Dave and Matt, >> >> I am really dealing with two different use cases in a code that will

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Matteo Semplice
Il 22/12/22 20:06, Dave May ha scritto: On Thu 22. Dec 2022 at 10:27, Matteo Semplice wrote: Dear Dave and Matt,     I am really dealing with two different use cases in a code that will compute a levelset function passing through a large set of points. If I had DMSwarmSetM

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Dave May
On Thu 22. Dec 2022 at 10:27, Matteo Semplice wrote: > Dear Dave and Matt, > > I am really dealing with two different use cases in a code that will > compute a levelset function passing through a large set of points. If I had > DMSwarmSetMigrateType() and if it were safe to switch the migrati

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Matteo Semplice
Dear Dave and Matt,     I am really dealing with two different use cases in a code that will compute a levelset function passing through a large set of points. If I had DMSwarmSetMigrateType() and if it were safe to switch the migration mode back and forth in the same swarm, this would cover a

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Dave May
Hey Matt, On Thu 22. Dec 2022 at 05:02, Matthew Knepley wrote: > On Thu, Dec 22, 2022 at 6:28 AM Matteo Semplice < > matteo.sempl...@uninsubria.it> wrote: > >> Dear all >> >> please ignore my previous email and read this one: I have better >> localized the problem. Maybe DMSwarmMigrate is de

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Matteo Semplice
Il 22/12/22 14:02, Matthew Knepley ha scritto: On Thu, Dec 22, 2022 at 6:28 AM Matteo Semplice wrote: Dear all     please ignore my previous email and read this one: I have better localized the problem. Maybe DMSwarmMigrate is designed to migrate particles only to first neigh

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Matthew Knepley
On Thu, Dec 22, 2022 at 6:28 AM Matteo Semplice < matteo.sempl...@uninsubria.it> wrote: > Dear all > > please ignore my previous email and read this one: I have better > localized the problem. Maybe DMSwarmMigrate is designed to migrate > particles only to first neighbouring ranks? > Yes, I be

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Matteo Semplice
Dear all     please ignore my previous email and read this one: I have better localized the problem. Maybe DMSwarmMigrate is designed to migrate particles only to first neighbouring ranks? Il 22/12/22 11:44, Matteo Semplice ha scritto: Dear everybody,     I have bug a bit into the code and

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-22 Thread Matteo Semplice
Dear everybody,     I have bug a bit into the code and I am able to add more information. Il 02/12/22 12:48, Matteo Semplice ha scritto: Hi. I am sorry to take this up again, but further tests show that it's not right yet. Il 04/11/22 12:48, Matthew Knepley ha scritto: On Fri, Nov 4, 2022 at

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-12-02 Thread Matteo Semplice
Hi. I am sorry to take this up again, but further tests show that it's not right yet. Il 04/11/22 12:48, Matthew Knepley ha scritto: On Fri, Nov 4, 2022 at 7:46 AM Matteo Semplice wrote: On 04/11/2022 02:43, Matthew Knepley wrote: On Thu, Nov 3, 2022 at 8:36 PM Matthew Knepley

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-11-04 Thread Matthew Knepley
On Fri, Nov 4, 2022 at 7:46 AM Matteo Semplice < matteo.sempl...@uninsubria.it> wrote: > On 04/11/2022 02:43, Matthew Knepley wrote: > > On Thu, Nov 3, 2022 at 8:36 PM Matthew Knepley wrote: > >> On Thu, Oct 27, 2022 at 11:57 AM Semplice Matteo < >> matteo.sempl...@uninsubria.it> wrote: >> >>> De

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-11-04 Thread Matteo Semplice
On 04/11/2022 02:43, Matthew Knepley wrote: On Thu, Nov 3, 2022 at 8:36 PM Matthew Knepley wrote: On Thu, Oct 27, 2022 at 11:57 AM Semplice Matteo wrote: Dear Petsc developers, I am trying to use a DMSwarm to locate a cloud of points with respect to a backgroun

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-11-03 Thread Matthew Knepley
On Thu, Nov 3, 2022 at 8:36 PM Matthew Knepley wrote: > On Thu, Oct 27, 2022 at 11:57 AM Semplice Matteo < > matteo.sempl...@uninsubria.it> wrote: > >> Dear Petsc developers, >> I am trying to use a DMSwarm to locate a cloud of points with respect >> to a background mesh. In the real applicat

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-11-03 Thread Matthew Knepley
On Thu, Oct 27, 2022 at 11:57 AM Semplice Matteo < matteo.sempl...@uninsubria.it> wrote: > Dear Petsc developers, > I am trying to use a DMSwarm to locate a cloud of points with respect > to a background mesh. In the real application the points will be loaded > from disk, but I have created a

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-10-27 Thread Matthew Knepley
On Thu, Oct 27, 2022 at 11:57 AM Semplice Matteo < matteo.sempl...@uninsubria.it> wrote: > Dear Petsc developers, > I am trying to use a DMSwarm to locate a cloud of points with respect > to a background mesh. In the real application the points will be loaded > from disk, but I have created a

Re: [petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-10-27 Thread Mark Adams
I have the same problem and it is being worked on. Joe: Lets add Matteo to our thread on this so we can all test it when you have something. Thanks, Mark On Thu, Oct 27, 2022 at 11:57 AM Semplice Matteo < matteo.sempl...@uninsubria.it> wrote: > Dear Petsc developers, > I am trying to use a

[petsc-users] locate DMSwarm particles with respect to a background DMDA mesh

2022-10-27 Thread Semplice Matteo
Dear Petsc developers, I am trying to use a DMSwarm to locate a cloud of points with respect to a background mesh. In the real application the points will be loaded from disk, but I have created a small demo in which * each processor creates Npart particles, all within the domain covered