particle parallelization

27 views
Skip to first unread message

Shahab Golshan

unread,
Jul 5, 2020, 11:58:16 PM7/5/20
to deal.II User Group
Hello,
I have a few questions on the parallelization aspects of a system containing particles and I would appreciate it if someone could answer them.
The first one is: Let's say I'm using 2 CPUs for a simulation. If I change a property of a ghost particle (located in a ghost cell for CPU0), will the property of the real particle on the other CPU change?
Thanks in advance
Shahab

Bruno Blais

unread,
Jul 6, 2020, 8:22:13 AM7/6/20
to deal.II User Group
Dear Shahab,
No, if you change a property of a particle on proc 0 and this particle is a ghost cell on proc 0, this property will not change on proc 1 (which would be its owner).
You would need to change the property on proc 1 and then I think the update on proc 0 will only be done when you call the exchange_ghost_particles function of the ParticleHandler class

Wolfgang Bangerth

unread,
Jul 6, 2020, 11:41:18 PM7/6/20
to dea...@googlegroups.com
Shahab,
the question has already been answered, but I thought I'd also put that into
the documentation:
https://github.com/dealii/dealii/pull/10663

Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages