PartMC 2.1.3
Public Attributes
pmc_aero_info_array::aero_info_array_t Type Reference

1-D arrays of aero_info_t structure. More...

List of all members.

Public Attributes

integer n_item
 Number of items in the array (not the same as the length of the allocated memory).
type(aero_info_t), dimension(:),
pointer 
aero_info
 Array of aero_info_t structures.

Detailed Description

1-D arrays of aero_info_t structure.

This type implements a variable-length array of aero_info_t structures. To give a reasonable tradeoff between frequent re-allocs and memory usage, the length of an aero_info_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_info_array can be obtained by size(aero_info_array%aero_info), while the number of used particle slots in it is given by aero_info_array%n_item. It must be that aero_info_array%n_item is less than or equal to size(aero_info_array%aero_info).

Definition at line 35 of file aero_info_array.F90.


Member Data Documentation

Array of aero_info_t structures.

Definition at line 40 of file aero_info_array.F90.

Number of items in the array (not the same as the length of the allocated memory).

Definition at line 38 of file aero_info_array.F90.


The documentation for this type was generated from the following file: