PartMC  2.6.1
Public Attributes | List of all members
pmc_aero_info_array::aero_info_array_t Type Reference

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

Public Attributes

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

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

Definition at line 33 of file aero_info_array.F90.

Member Data Documentation

◆ aero_info

type(aero_info_t), dimension(:), allocatable pmc_aero_info_array::aero_info_array_t::aero_info

Array of aero_info_t structures.

Definition at line 38 of file aero_info_array.F90.

◆ n_item

integer pmc_aero_info_array::aero_info_array_t::n_item

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

Definition at line 36 of file aero_info_array.F90.


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