mus_particles_IDbuffer_type Derived Type

type, public :: mus_particles_IDbuffer_type

process-wise buffer for particle IDs Used to inform other processes when a particle needs to be removed/killed


Components

Type Visibility Attributes Name Initial
integer, public, allocatable :: val(:)

explicit buffer for data to be transferred

integer, public :: nParticles

number of particles to exchange, depends on number of particles at the interface of two processes. nParticles can change at every time step!

Buffer can hold data for at most maxParticles This one we keep fixed through the duration of the program to avoid de-allocating, re-allocating memory at every time step.

integer, public :: maxParticles