The rxn_photolysis_t type and associated functions.
More...
|
type(rxn_photolysis_t) function, pointer | constructor () |
| Constructor for 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.
|
|
The rxn_photolysis_t type and associated functions.
◆ constructor()
Constructor for Photolysis reaction.
- Returns
- A new reaction instance
Definition at line 168 of file rxn_photolysis.F90.
◆ finalize()
elemental subroutine camp_rxn_photolysis::finalize |
( |
type(rxn_photolysis_t), intent(inout) |
this | ) |
|
|
private |
Finalize the reaction.
- Parameters
-
[in,out] | this | Reaction data |
Definition at line 328 of file rxn_photolysis.F90.
◆ get_property_set()
Get the reaction properties. (For use by external photolysis modules.)
- Returns
- Reaction properties
- Parameters
-
Definition at line 314 of file rxn_photolysis.F90.
◆ initialize()
Initialize the reaction data, validating component data and loading any required information into the condensed data arrays for use during solving.
- Parameters
-
[in,out] | this | Reaction data |
[in] | chem_spec_data | Chemical species data |
[in] | aero_rep | Aerosol representations |
[in] | n_cells | Number of grid cells to solve simultaneously |
Definition at line 183 of file rxn_photolysis.F90.
◆ internal_bin_pack()
Pack the given value to the buffer, advancing position.
- Parameters
-
[in] | this | Reaction update data |
[in,out] | buffer | Memory buffer |
[in,out] | pos | Current buffer position |
[in] | comm | MPI communicator |
Definition at line 403 of file rxn_photolysis.F90.
◆ internal_bin_unpack()
Unpack the given value from the buffer, advancing position.
- Parameters
-
[in,out] | this | Reaction update data |
[in,out] | buffer | Memory buffer |
[in,out] | pos | Current buffer position |
[in] | comm | MPI communicator |
Definition at line 429 of file rxn_photolysis.F90.
◆ internal_pack_size()
Determine the size of a binary required to pack the reaction data.
- Parameters
-
[in] | this | Reaction update data |
[in] | comm | MPI communicator |
Definition at line 386 of file rxn_photolysis.F90.
◆ update_data_finalize()
Finalize an update data object.
- Parameters
-
[in,out] | this | Update data object to free |
Definition at line 456 of file rxn_photolysis.F90.
◆ update_data_initialize()
Initialize update data.
- Parameters
-
[in,out] | this | The reaction to update |
[out] | update_data | Update data object |
[in] | rxn_type | Reaction type id |
Definition at line 360 of file rxn_photolysis.F90.
◆ update_data_rate_set()
subroutine camp_rxn_photolysis::update_data_rate_set |
( |
class(rxn_update_data_photolysis_t), intent(inout) |
this, |
|
|
real(kind=dp), intent(in) |
base_rate |
|
) |
| |
|
private |
Set packed update data for photolysis rate constants.
- Parameters
-
[in,out] | this | Update data |
[in] | base_rate | Updated pre-scaling photolysis rate |
Definition at line 345 of file rxn_photolysis.F90.