Classes | |
struct | gas_data_t |
Constant gas data. More... | |
Functions | |
subroutine | gas_data_allocate (gas_data) |
Allocate storage for gas species. | |
subroutine | gas_data_allocate_size (gas_data, n_spec) |
Allocate storage for gas species with the given size. | |
subroutine | gas_data_deallocate (gas_data) |
Free all storage. | |
integer | gas_data_spec_by_name (gas_data, name) |
Returns the number of the species in gas with the given name, or returns 0 if there is no such species. | |
subroutine | gas_data_set_mosaic_map (gas_data) |
Fills in gas_datamosaic_index. | |
subroutine | spec_file_read_gas_data (file, gas_data) |
Read gas data from a .spec file. | |
integer | pmc_mpi_pack_size_gas_data (val) |
Determines the number of bytes required to pack the given value. | |
subroutine | pmc_mpi_pack_gas_data (buffer, position, val) |
Packs the given value into the buffer, advancing position. | |
subroutine | pmc_mpi_unpack_gas_data (buffer, position, val) |
Unpacks the given value from the buffer, advancing position. | |
subroutine | gas_data_netcdf_dim_gas_species (gas_data, ncid, dimid_gas_species) |
Write the gas species dimension to the given NetCDF file if it is not already present and in any case return the associated dimid. | |
subroutine | gas_data_output_netcdf (gas_data, ncid) |
Write full state. | |
subroutine | gas_data_input_netcdf (gas_data, ncid) |
Read full state. | |
Variables | |
integer, parameter | GAS_NAME_LEN = 100 |
Maximum length of the name of a gas. |
subroutine pmc_gas_data::gas_data_allocate | ( | type(gas_data_t),intent(out) | gas_data | ) |
Allocate storage for gas species.
gas_data | Gas data. |
subroutine pmc_gas_data::gas_data_allocate_size | ( | type(gas_data_t),intent(out) | gas_data, | |
integer,intent(in) | n_spec | |||
) |
Allocate storage for gas species with the given size.
gas_data | Gas data. |
n_spec | Number of species. |
subroutine pmc_gas_data::gas_data_deallocate | ( | type(gas_data_t),intent(out) | gas_data | ) |
Free all storage.
gas_data | Gas data. |
subroutine pmc_gas_data::gas_data_input_netcdf | ( | type(gas_data_t),intent(inout) | gas_data, | |
integer,intent(in) | ncid | |||
) |
Read full state.
gas_data | Gas_data to read. |
ncid | NetCDF file ID, in data mode. |
subroutine pmc_gas_data::gas_data_netcdf_dim_gas_species | ( | type(gas_data_t),intent(in) | gas_data, | |
integer,intent(in) | ncid, | |||
integer,intent(out) | dimid_gas_species | |||
) |
Write the gas species dimension to the given NetCDF file if it is not already present and in any case return the associated dimid.
gas_data | Gas_data structure. |
ncid | NetCDF file ID, in data mode. |
dimid_gas_species | Dimid of the species dimension. |
subroutine pmc_gas_data::gas_data_output_netcdf | ( | type(gas_data_t),intent(in) | gas_data, | |
integer,intent(in) | ncid | |||
) |
Write full state.
gas_data | Gas_data to write. |
ncid | NetCDF file ID, in data mode. |
subroutine pmc_gas_data::gas_data_set_mosaic_map | ( | type(gas_data_t),intent(inout) | gas_data | ) |
Fills in gas_datamosaic_index.
gas_data | Gas data. |
integer pmc_gas_data::gas_data_spec_by_name | ( | type(gas_data_t),intent(in) | gas_data, | |
character(len=GAS_NAME_LEN),intent(in) | name | |||
) |
Returns the number of the species in gas with the given name, or returns 0 if there is no such species.
gas_data | Gas data. |
name | Name of species to find. |
subroutine pmc_gas_data::pmc_mpi_pack_gas_data | ( | character,dimension(:),intent(inout) | buffer, | |
integer,intent(inout) | position, | |||
type(gas_data_t),intent(in) | val | |||
) |
Packs the given value into the buffer, advancing position.
buffer | Memory buffer. |
position | Current buffer position. |
val | Value to pack. |
integer pmc_gas_data::pmc_mpi_pack_size_gas_data | ( | type(gas_data_t),intent(in) | val | ) |
Determines the number of bytes required to pack the given value.
val | Value to pack. |
subroutine pmc_gas_data::pmc_mpi_unpack_gas_data | ( | character,dimension(:),intent(inout) | buffer, | |
integer,intent(inout) | position, | |||
type(gas_data_t),intent(out) | val | |||
) |
Unpacks the given value from the buffer, advancing position.
buffer | Memory buffer. |
position | Current buffer position. |
val | Value to pack. |
subroutine pmc_gas_data::spec_file_read_gas_data | ( | type(spec_file_t),intent(inout) | file, | |
type(gas_data_t),intent(out) | gas_data | |||
) |
Read gas data from a .spec file.
file | Spec file. |
gas_data | Gas data. |
integer,parameter pmc_gas_data::GAS_NAME_LEN = 100 |
Maximum length of the name of a gas.