FLASH-X
Doxygen Generated Documentation From Interface Source Code
|
Go to the source code of this file.
Functions/Subroutines | |
subroutine | Particles_addNew (count, pos, success) |
subroutine Particles_addNew | ( | integer | count, |
real, dimension(MDIM,count), optional | pos, | ||
logical | success | ||
) |
This routine allows particles to be added during evolution. In the particles data structure it always initializes the tag and processor ID. If the optional argument "pos" is present then it will also initialize the position and block ID attributes in the particles. It returns the value FALSE in success if there isn't enough space left in the data structure for the requested number of particles.
count :: the count of particles to be added pos :: optional, contains the coordinates of the particles success :: This arg returns TRUE if there was enough space in the particles data structure to add the requested number of particles, FALSE otherwise.
NOTES
The constant MDIM is defined in constants.h .
Definition at line 41 of file Particles_addNew.F90.