Re: [petsc-users] Periodic boundary conditions using swarm

2024-04-21 Thread MIGUEL MOLINOS PEREZ
Thank you Matt, I will definitely do that. Thrilled to add a humble contribution to PETSc :-) Best, Miguel On 21 Apr 2024, at 16:01, Matthew Knepley wrote: On Sun, Apr 21, 2024 at 9:38 AM MIGUEL MOLINOS PEREZ mailto:mmoli...@us.es>> wrote: Dear Matt, Thank you for your answer. In addition

Re: [petsc-users] Periodic boundary conditions using swarm

2024-04-21 Thread Matthew Knepley
On Sun, Apr 21, 2024 at 9:38 AM MIGUEL MOLINOS PEREZ wrote: > Dear Matt, > > Thank you for your answer. In addition to your suggestion I solved a bug > in the test (I was not updating the local size integer during the time > loop). Indeed if I turn off periodicity it works. Furthermore, if I use

Re: [petsc-users] Periodic boundary conditions using swarm

2024-04-21 Thread MIGUEL MOLINOS PEREZ
Dear Matt, Thank you for your answer. In addition to your suggestion I solved a bug in the test (I was not updating the local size integer during the time loop). Indeed if I turn off periodicity it works. Furthermore, if I use instead DM_BOUNDARY_TWIST instead, it works too. However, if I

Re: [petsc-users] Periodic boundary conditions using swarm

2024-04-21 Thread Matthew Knepley
On Thu, Apr 18, 2024 at 8:23 AM MIGUEL MOLINOS PEREZ wrote: >  Dear all, I am working on the implementation of periodic bcc using a > discretisation (PIC-style). I am working with a test case which consists on > solving the advection of a set of particles inside of a box (DMDA mesh) > with

[petsc-users] Periodic boundary conditions using swarm

2024-04-18 Thread MIGUEL MOLINOS PEREZ
 Dear all, I am working on the implementation of periodic bcc using a discretisation (PIC-style). I am working with a test case which consists on solving the advection of a set of particles inside of a box (DMDA mesh) with periodic bcc on the x axis. My implementation updates the position