PartMC 2.1.2
|
1-D arrays of particles, used by aero_state to build a ragged array. More...
Public Attributes | |
integer | n_part |
Number of particles. | |
integer | n_spec |
Number of species. | |
integer | n_source |
Number of sources. | |
type(aero_particle_t), dimension(:), pointer | particle |
Particle array. |
1-D arrays of particles, used by aero_state to build a ragged array.
One aero_particle_array is generally a list of particles in a single size bin, but the basic type can be used for any list of particles.
To give a reasonable tradeoff between frequent re-allocs and memory usage, the length of an aero_particle_array is generally a bit longer than the number of particles stored in it. When the array is full then a larger array is allocated with new extra space. As a balance between memory usage and frequency of re-allocs the length of the array is currently doubled when necessary and halved when possible.
The true allocated length of the aero_particle_array can be obtained by size(aero_particle_array%particle), while the number of used particle slots in it is given by aero_particle_array%n_part. It must be that aero_particle_array%n_part is less than or equal to size(aero_particle_array%particle).
Definition at line 40 of file aero_particle_array.F90.
Number of particles.
Definition at line 42 of file aero_particle_array.F90.
Number of sources.
Definition at line 46 of file aero_particle_array.F90.
Number of species.
Definition at line 44 of file aero_particle_array.F90.
type(aero_particle_t),dimension(:),pointer pmc_aero_particle_array::aero_particle_array_t::particle |
Particle array.
Definition at line 48 of file aero_particle_array.F90.