PartMC
2.3.0
|
The aero_data_t structure and associated subroutines. More...
Data Types | |
type | aero_data_t |
Aerosol material properties and associated data. More... | |
Public Member Functions | |
subroutine | aero_data_allocate (aero_data) |
Allocate storage for aero_data. More... | |
subroutine | aero_data_allocate_size (aero_data, n_spec, n_source) |
Allocate storage for aero_data parameters given the number of species. More... | |
subroutine | aero_data_deallocate (aero_data) |
Frees all storage. More... | |
subroutine | aero_data_copy (aero_data_from, aero_data_to) |
Copy structure. More... | |
integer function | aero_data_spec_by_name (aero_data, name) |
Returns the number of the species in aero_data with the given name, or returns 0 if there is no such species. More... | |
integer function | aero_data_source_by_name (aero_data, name) |
Returns the number of the source in aero_data with the given name, or adds the source if it doesn't exist yet. More... | |
subroutine | aero_data_set_water_index (aero_data) |
Fills in aero_data%i_water. More... | |
subroutine | aero_data_set_mosaic_map (aero_data) |
Fills in aero_data%mosaic_index. More... | |
subroutine | spec_file_read_species_list (file, name, aero_data, species_list) |
Read a list of species from the given file with the given name. More... | |
integer function | pmc_mpi_pack_size_aero_data (val) |
Determines the number of bytes required to pack the given value. More... | |
subroutine | pmc_mpi_pack_aero_data (buffer, position, val) |
Packs the given value into the buffer, advancing position. More... | |
subroutine | pmc_mpi_unpack_aero_data (buffer, position, val) |
Unpacks the given value from the buffer, advancing position. More... | |
subroutine | aero_data_netcdf_dim_aero_species (aero_data, ncid, dimid_aero_species) |
Write the aero species dimension to the given NetCDF file if it is not already present and in any case return the associated dimid. More... | |
subroutine | aero_data_netcdf_dim_aero_source (aero_data, ncid, dimid_aero_source) |
Write the aero source dimension to the given NetCDF file if it is not already present and in any case return the associated dimid. More... | |
subroutine | aero_data_input_netcdf (aero_data, ncid) |
Read full state. More... | |
Public Attributes | |
integer, parameter | aero_name_len = 15 |
integer, parameter | aero_source_name_len = 100 |
The aero_data_t structure and associated subroutines.
Definition at line 9 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_allocate | ( | type(aero_data_t), intent(out) | aero_data | ) |
Allocate storage for aero_data.
[out] | aero_data | Aerosol data. |
Definition at line 69 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_allocate_size | ( | type(aero_data_t), intent(out) | aero_data, |
integer, intent(in) | n_spec, | ||
integer, intent(in) | n_source | ||
) |
Allocate storage for aero_data parameters given the number of species.
[out] | aero_data | Aerosol data. |
[in] | n_spec | Number of species. |
[in] | n_source | Number of sources. |
Definition at line 91 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_copy | ( | type(aero_data_t), intent(in) | aero_data_from, |
type(aero_data_t), intent(inout) | aero_data_to | ||
) |
Copy structure.
[in] | aero_data_from | Source aerosol data. |
[in,out] | aero_data_to | Destination aerosol data. |
Definition at line 134 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_deallocate | ( | type(aero_data_t), intent(inout) | aero_data | ) |
Frees all storage.
[in,out] | aero_data | Aerosol data. |
Definition at line 116 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_input_netcdf | ( | type(aero_data_t), intent(inout) | aero_data, |
integer, intent(in) | ncid | ||
) |
Read full state.
[in,out] | aero_data | Aero_data to read. |
[in] | ncid | NetCDF file ID, in data mode. |
Definition at line 664 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_netcdf_dim_aero_source | ( | type(aero_data_t), intent(in) | aero_data, |
integer, intent(in) | ncid, | ||
integer, intent(out) | dimid_aero_source | ||
) |
Write the aero source dimension to the given NetCDF file if it is not already present and in any case return the associated dimid.
[in] | aero_data | Aero_data structure. |
[in] | ncid | NetCDF file ID, in data mode. |
[out] | dimid_aero_source | Dimid of the source dimension. |
Definition at line 547 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_netcdf_dim_aero_species | ( | type(aero_data_t), intent(in) | aero_data, |
integer, intent(in) | ncid, | ||
integer, intent(out) | dimid_aero_species | ||
) |
Write the aero species dimension to the given NetCDF file if it is not already present and in any case return the associated dimid.
[in] | aero_data | Aero_data structure. |
[in] | ncid | NetCDF file ID, in data mode. |
[out] | dimid_aero_species | Dimid of the species dimension. |
Definition at line 491 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_set_mosaic_map | ( | type(aero_data_t), intent(inout) | aero_data | ) |
Fills in aero_data%mosaic_index.
[in,out] | aero_data | Aero_data data. |
Definition at line 244 of file aero_data.F90.
subroutine pmc_aero_data::aero_data_set_water_index | ( | type(aero_data_t), intent(inout) | aero_data | ) |
Fills in aero_data%i_water.
[in,out] | aero_data | Aero_data data. |
Definition at line 226 of file aero_data.F90.
integer function pmc_aero_data::aero_data_source_by_name | ( | type(aero_data_t), intent(inout) | aero_data, |
character(len=*), intent(in) | name | ||
) |
Returns the number of the source in aero_data with the given name, or adds the source if it doesn't exist yet.
[in,out] | aero_data | Aero_data data. |
[in] | name | Name of source to find. |
Definition at line 189 of file aero_data.F90.
integer function pmc_aero_data::aero_data_spec_by_name | ( | type(aero_data_t), intent(in) | aero_data, |
character(len=*), intent(in) | name | ||
) |
Returns the number of the species in aero_data with the given name, or returns 0 if there is no such species.
[in] | aero_data | Aero_data data. |
[in] | name | Name of species to find. |
Definition at line 160 of file aero_data.F90.
subroutine pmc_aero_data::pmc_mpi_pack_aero_data | ( | character, dimension(:), intent(inout) | buffer, |
integer, intent(inout) | position, | ||
type(aero_data_t), intent(in) | val | ||
) |
Packs the given value into the buffer, advancing position.
[in,out] | buffer | Memory buffer. |
[in,out] | position | Current buffer position. |
[in] | val | Value to pack. |
Definition at line 425 of file aero_data.F90.
integer function pmc_aero_data::pmc_mpi_pack_size_aero_data | ( | type(aero_data_t), intent(in) | val | ) |
Determines the number of bytes required to pack the given value.
[in] | val | Value to pack. |
Definition at line 403 of file aero_data.F90.
subroutine pmc_aero_data::pmc_mpi_unpack_aero_data | ( | character, dimension(:), intent(inout) | buffer, |
integer, intent(inout) | position, | ||
type(aero_data_t), intent(inout) | val | ||
) |
Unpacks the given value from the buffer, advancing position.
[in,out] | buffer | Memory buffer. |
[in,out] | position | Current buffer position. |
[in,out] | val | Value to pack. |
Definition at line 457 of file aero_data.F90.
subroutine pmc_aero_data::spec_file_read_species_list | ( | type(spec_file_t), intent(inout) | file, |
character(len=*), intent(in) | name, | ||
type(aero_data_t), intent(in) | aero_data, | ||
integer, dimension(:), pointer | species_list | ||
) |
Read a list of species from the given file with the given name.
[in,out] | file | Spec file. |
[in] | name | Name of line. |
[in] | aero_data | Aero_data data. |
species_list | List of species numbers. |
Definition at line 371 of file aero_data.F90.
integer, parameter pmc_aero_data::aero_name_len = 15 |
Definition at line 19 of file aero_data.F90.
integer, parameter pmc_aero_data::aero_source_name_len = 100 |
Definition at line 20 of file aero_data.F90.