CAMP 1.0.0
Chemistry Across Multiple Phases
Public Member Functions | List of all members
camp_aero_rep_data::spec_state_id Interface Reference

Get a species id on the camp_camp_state::camp_state_t::state_var array by unique name. These are unique ids for each element on the state array for this aerosol representation and are numbered: More...

Public Member Functions

integer(kind=i_kind) function spec_state_id (this, unique_name)
 

Detailed Description

Get a species id on the camp_camp_state::camp_state_t::state_var array by unique name. These are unique ids for each element on the state array for this aerosol representation and are numbered:

\[x_u \in x_f ... (x_f+n-1)\]

where \(x_u\) is the id of the element corresponding to the species with unique name \(u\) on the camp_camp_state::camp_state_t::state_var array, \(x_f\) is the index of the first element for this aerosol representation on the state array and \(n\) is the total number of variables on the state array from this aerosol representation.

If the name is not found, the return value is 0.

Definition at line 313 of file aero_rep_data.F90.

Constructor & Destructor Documentation

◆ spec_state_id()

integer(kind=i_kind) function camp_aero_rep_data::spec_state_id::spec_state_id ( class(aero_rep_data_t), intent(in)  this,
character(len=*), intent(in)  unique_name 
)
Returns
Species state id
Parameters
[in]thisAerosol representation data
[in]unique_nameUnique name

Definition at line 313 of file aero_rep_data.F90.


The documentation for this interface was generated from the following file: