CAMP 1.0.0
Chemistry Across Multiple Phases
Data Types | Functions/Subroutines
camp_rxn_condensed_phase_photolysis Module Reference

The rxn_condensed_phase_photolysis_t type and associated functions. More...

Data Types

interface  rxn_condensed_phase_photolysis_create_rate_update_data
 Interface to c reaction functions. More...
 
interface  rxn_condensed_phase_photolysis_set_rate_update_data
 Set a new photolysis rate. More...
 
interface  rxn_condensed_phase_photolysis_t
 Generic test reaction data type. More...
 
interface  rxn_free_update_data
 Free an update rate data object. More...
 
type  rxn_update_data_condensed_phase_photolysis_t
 Condensed-phase Photolysis rate update object. More...
 

Functions/Subroutines

type(rxn_condensed_phase_photolysis_t) function, pointer constructor ()
 Constructor for Condensed-phase Photolysis reaction.
 
subroutine initialize (this, chem_spec_data, aero_rep, n_cells)
 Initialize the reaction data, validating component data and loading any required information into the condensed data arrays for use during solving.
 
type(property_t) function, pointer get_property_set (this)
 Get the reaction properties. (For use by external photolysis modules.)
 
elemental subroutine finalize (this)
 Finalize the reaction.
 
subroutine update_data_rate_set (this, base_rate)
 Set packed update data for photolysis rate constants.
 
subroutine update_data_initialize (this, update_data, rxn_type)
 Initialize update data.
 
integer(kind=i_kind) function internal_pack_size (this, comm)
 Determine the size of a binary required to pack the reaction data.
 
subroutine internal_bin_pack (this, buffer, pos, comm)
 Pack the given value to the buffer, advancing position.
 
subroutine internal_bin_unpack (this, buffer, pos, comm)
 Unpack the given value from the buffer, advancing position.
 
elemental subroutine update_data_finalize (this)
 Finalize an update data object.
 

Detailed Description

The rxn_condensed_phase_photolysis_t type and associated functions.

Function/Subroutine Documentation

◆ constructor()

type(rxn_condensed_phase_photolysis_t) function, pointer camp_rxn_condensed_phase_photolysis::constructor
private

Constructor for Condensed-phase Photolysis reaction.

Returns
A new reaction instance

Definition at line 173 of file rxn_condensed_phase_photolysis.F90.

◆ finalize()

elemental subroutine camp_rxn_condensed_phase_photolysis::finalize ( type(rxn_condensed_phase_photolysis_t), intent(inout)  this)
private

Finalize the reaction.

Parameters
[in,out]thisReaction data

Definition at line 522 of file rxn_condensed_phase_photolysis.F90.

◆ get_property_set()

type(property_t) function, pointer camp_rxn_condensed_phase_photolysis::get_property_set ( class(rxn_condensed_phase_photolysis_t), intent(in)  this)
private

Get the reaction properties. (For use by external photolysis modules.)

Returns
Reaction properties
Parameters
[in]thisReaction data

Definition at line 508 of file rxn_condensed_phase_photolysis.F90.

◆ initialize()

subroutine camp_rxn_condensed_phase_photolysis::initialize ( class(rxn_condensed_phase_photolysis_t), intent(inout)  this,
type(chem_spec_data_t), intent(in)  chem_spec_data,
type(aero_rep_data_ptr), dimension(:), intent(in), pointer  aero_rep,
integer(kind=i_kind), intent(in)  n_cells 
)
private

Initialize the reaction data, validating component data and loading any required information into the condensed data arrays for use during solving.

Parameters
[in,out]thisReaction data
[in]chem_spec_dataChemical species data
[in]aero_repAerosol representations
[in]n_cellsNumber of grid cells to solve simultaneously

Definition at line 188 of file rxn_condensed_phase_photolysis.F90.

Here is the call graph for this function:

◆ internal_bin_pack()

subroutine camp_rxn_condensed_phase_photolysis::internal_bin_pack ( class(rxn_update_data_condensed_phase_photolysis_t), intent(in)  this,
character, dimension(:), intent(inout)  buffer,
integer, intent(inout)  pos,
integer, intent(in)  comm 
)
private

Pack the given value to the buffer, advancing position.

Parameters
[in]thisReaction update data
[in,out]bufferMemory buffer
[in,out]posCurrent buffer position
[in]commMPI communicator

Definition at line 597 of file rxn_condensed_phase_photolysis.F90.

Here is the call graph for this function:

◆ internal_bin_unpack()

subroutine camp_rxn_condensed_phase_photolysis::internal_bin_unpack ( class(rxn_update_data_condensed_phase_photolysis_t), intent(inout)  this,
character, dimension(:), intent(inout)  buffer,
integer, intent(inout)  pos,
integer, intent(in)  comm 
)
private

Unpack the given value from the buffer, advancing position.

Parameters
[in,out]thisReaction update data
[in,out]bufferMemory buffer
[in,out]posCurrent buffer position
[in]commMPI communicator

Definition at line 623 of file rxn_condensed_phase_photolysis.F90.

Here is the call graph for this function:

◆ internal_pack_size()

integer(kind=i_kind) function camp_rxn_condensed_phase_photolysis::internal_pack_size ( class(rxn_update_data_condensed_phase_photolysis_t), intent(in)  this,
integer, intent(in)  comm 
)
private

Determine the size of a binary required to pack the reaction data.

Parameters
[in]thisReaction update data
[in]commMPI communicator

Definition at line 580 of file rxn_condensed_phase_photolysis.F90.

Here is the call graph for this function:

◆ update_data_finalize()

elemental subroutine camp_rxn_condensed_phase_photolysis::update_data_finalize ( type(rxn_update_data_condensed_phase_photolysis_t), intent(inout)  this)
private

Finalize an update data object.

Parameters
[in,out]thisUpdate data object to free

Definition at line 650 of file rxn_condensed_phase_photolysis.F90.

Here is the caller graph for this function:

◆ update_data_initialize()

subroutine camp_rxn_condensed_phase_photolysis::update_data_initialize ( class(rxn_condensed_phase_photolysis_t), intent(inout)  this,
class(rxn_update_data_condensed_phase_photolysis_t), intent(out)  update_data,
integer(kind=i_kind), intent(in)  rxn_type 
)
private

Initialize update data.

Parameters
[in,out]thisThe reaction to update
[out]update_dataUpdate data object
[in]rxn_typeReaction type id

Definition at line 554 of file rxn_condensed_phase_photolysis.F90.

Here is the call graph for this function:

◆ update_data_rate_set()

subroutine camp_rxn_condensed_phase_photolysis::update_data_rate_set ( class(rxn_update_data_condensed_phase_photolysis_t), intent(inout)  this,
real(kind=dp), intent(in)  base_rate 
)
private

Set packed update data for photolysis rate constants.

Parameters
[in,out]thisUpdate data
[in]base_rateUpdated pre-scaling photolysis rate

Definition at line 539 of file rxn_condensed_phase_photolysis.F90.