PartMC 2.1.0
Data Types | Modules | Functions/Subroutines
gas_state.F90 File Reference

The pmc_gas_state module. More...

Data Types

type  pmc_gas_state::gas_state_t
 Current state of the gas mixing ratios in the system. More...

Modules

module  pmc_gas_state
 

The gas_state_t structure and associated subroutines.


Functions/Subroutines

subroutine pmc_gas_state::gas_state_allocate (gas_state)
 Allocate storage for gas species.
subroutine pmc_gas_state::gas_state_allocate_size (gas_state, n_spec)
 Allocate storage for gas species of the given size.
subroutine pmc_gas_state::gas_state_deallocate (gas_state)
 Free all storage.
subroutine pmc_gas_state::gas_state_zero (gas_state)
 Zeros the state.
subroutine pmc_gas_state::gas_state_copy (from_state, to_state)
 Copy to an already allocated to_state.
subroutine pmc_gas_state::gas_state_scale (gas_state, alpha)
 Scale a gas state.
subroutine pmc_gas_state::gas_state_add (gas_state, gas_state_delta)
 Adds the given gas_state_delta.
subroutine pmc_gas_state::gas_state_sub (gas_state, gas_state_delta)
 Subtracts the given gas_state_delta.
subroutine pmc_gas_state::gas_state_axpy (alpha, gas_state_x, gas_state_y)
 Sets y = a * x + y.
subroutine pmc_gas_state::gas_state_ensure_nonnegative (gas_state)
 Set any negative values to zero.
subroutine pmc_gas_state::gas_state_interp_1d (gas_state_list, time_list, rate_list, time, gas_state, rate)
 Determine the current gas_state and rate by interpolating at the current time with the lists of gas_states and rates.
subroutine pmc_gas_state::spec_file_read_gas_state (file, gas_data, gas_state)
 Read gas state from the file named on the line read from file.
subroutine pmc_gas_state::spec_file_read_gas_states_times_rates (file, gas_data, times, rates, gas_states)
 Read an array of gas states with associated times and rates from the file named on the line read from the given file.
subroutine pmc_gas_state::gas_state_mix (val)
 Average val over all processes.
subroutine pmc_gas_state::gas_state_reduce_avg (val)
 Average val over all processes, with the result only on the root process.
integer pmc_gas_state::pmc_mpi_pack_size_gas_state (val)
 Determines the number of bytes required to pack the given value.
subroutine pmc_gas_state::pmc_mpi_pack_gas_state (buffer, position, val)
 Packs the given value into the buffer, advancing position.
subroutine pmc_gas_state::pmc_mpi_unpack_gas_state (buffer, position, val)
 Unpacks the given value from the buffer, advancing position.
subroutine pmc_gas_state::pmc_mpi_reduce_avg_gas_state (val, val_avg)
 Computes the average of val across all processes, storing the result in val_avg on the root process.
subroutine pmc_gas_state::gas_state_output_netcdf (gas_state, ncid, gas_data)
 Write full state.
subroutine pmc_gas_state::gas_state_input_netcdf (gas_state, ncid, gas_data)
 Read full state.

Detailed Description

The pmc_gas_state module.