pmc_aero_particle_array::aero_particle_array_t Struct Reference

1-D arrays of particles, used by aero_state to build a ragged array. More...

Collaboration diagram for pmc_aero_particle_array::aero_particle_array_t:

Collaboration graph
[legend]

List of all members.

Public Attributes

integer n_part
 Number of particles.
integer n_spec
 Number of species.
type(aero_particle_tparticle
 Particle array.


Detailed Description

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).


Member Data Documentation

integer pmc_aero_particle_array::aero_particle_array_t::n_part

Number of particles.

integer pmc_aero_particle_array::aero_particle_array_t::n_spec

Number of species.

type(aero_particle_t) pmc_aero_particle_array::aero_particle_array_t::particle

Particle array.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 17 10:31:03 2008 for PartMC by  doxygen 1.5.4