The pmc_env_state module. More...
Data Types | |
type | pmc_env_state::env_state_t |
Current environment state. More... | |
Modules | |
module | pmc_env_state |
The env_state_t structure and associated subroutines. | |
Functions/Subroutines | |
subroutine | pmc_env_state::env_state_allocate (env_state) |
Allocate an empty environment. | |
subroutine | pmc_env_state::env_state_deallocate (env_state) |
Free all storage. | |
subroutine | pmc_env_state::env_state_add (env_state, env_state_delta) |
env_state += env_state_delta | |
subroutine | pmc_env_state::env_state_scale (env_state, alpha) |
env_state *= alpha | |
subroutine | pmc_env_state::env_state_copy (env_from, env_to) |
env_to = env_from | |
subroutine | pmc_env_state::env_state_change_water_volume (env_state, aero_data, dv) |
Adds the given water volume to the water vapor and updates all environment quantities. | |
real(kind=dp) | pmc_env_state::env_state_sat_vapor_pressure (env_state) |
Computes the current saturation vapor pressure (Pa). | |
real(kind=dp) | pmc_env_state::aero_particle_kappa_rh (aero_particle, aero_data, env_state) |
Returns the critical relative humidity from the kappa value (1). | |
real(kind=dp) | pmc_env_state::env_state_air_den (env_state) |
Air density (kg m^{-3}). | |
real(kind=dp) | pmc_env_state::env_state_air_molar_den (env_state) |
Air molar density (mol m^{-3}). | |
subroutine | pmc_env_state::gas_state_mole_dens_to_ppb (gas_state, env_state) |
Convert (mol m^{-3}) to (ppb). | |
real(kind=dp) | pmc_env_state::env_state_ppb_to_conc (env_state, ppb) |
Convert (ppb) to (molecules m^{-3}). | |
real(kind=dp) | pmc_env_state::env_state_conc_to_ppb (env_state, conc) |
Convert (molecules m^{-3}) to (ppb). | |
subroutine | pmc_env_state::env_state_update_gas_state (env_state, delta_t, old_env_state, gas_data, gas_state) |
Do emissions and background dilution from the environment. | |
subroutine | pmc_env_state::env_state_update_aero_state (env_state, delta_t, old_env_state, bin_grid, aero_data, aero_weight, aero_state, n_emit, n_dil_in, n_dil_out) |
Do emissions and background dilution from the environment for a particle aerosol distribution. | |
subroutine | pmc_env_state::env_state_update_aero_binned (env_state, delta_t, old_env_state, bin_grid, aero_data, aero_binned) |
Do emissions and background dilution from the environment for a binned aerosol distribution. | |
subroutine | pmc_env_state::spec_file_read_env_state (file, env_state) |
Read environment specification from a spec file. | |
subroutine | pmc_env_state::env_state_mix (val) |
Average val over all processes. | |
subroutine | pmc_env_state::env_state_reduce_avg (val) |
Average val over all processes, with the result only on the root process. | |
integer | pmc_env_state::pmc_mpi_pack_size_env_state (val) |
Determines the number of bytes required to pack the given value. | |
subroutine | pmc_env_state::pmc_mpi_pack_env_state (buffer, position, val) |
Packs the given value into the buffer, advancing position. | |
subroutine | pmc_env_state::pmc_mpi_unpack_env_state (buffer, position, val) |
Unpacks the given value from the buffer, advancing position. | |
subroutine | pmc_env_state::pmc_mpi_reduce_avg_env_state (val, val_avg) |
Computes the average of val across all processes, storing the result in val_avg on the root process. | |
subroutine | pmc_env_state::env_state_output_netcdf (env_state, ncid) |
Write full state. | |
subroutine | pmc_env_state::env_state_input_netcdf (env_state, ncid) |
Read full state. |
The pmc_env_state module.