src/gas_state.f90 File Reference

The pmc_gas_state module. More...

Classes

struct  pmc_gas_state::gas_state_t
 Current state of the gas concentrations in the system. More...

Namespaces

namespace  pmc_gas_state
 

The gas_state_t structure and associated subroutines.


Functions

subroutine pmc_gas_state::gas_state_alloc (gas_state, n_spec)
 Allocate storage for gas species.
subroutine pmc_gas_state::gas_state_free (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_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::inout_write_gas_state (file, gas_state)
 Write full state.
subroutine pmc_gas_state::inout_read_gas_state (file, gas_state)
 Read full state.
subroutine pmc_gas_state::spec_read_gas_state (file, gas_data, name, gas_state)
 Read gas state from the file named on the line read from file.
subroutine pmc_gas_state::spec_read_gas_states_times_rates (file, gas_data, name, 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_average (gas_state_vec, gas_state_avg)
 Computes the average of an array of gas_state.
subroutine pmc_gas_state::gas_state_mix (val)
 Average val over all processes.
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.

Detailed Description

The pmc_gas_state module.


Generated on 29 Mar 2010 for PartMC by  doxygen 1.6.1