Get index of the maingoup with id: maingoup_id
Get index of the maingoup with id: maingoup_id
. Gets the index of the
maingoup in the self%maingoups_ids
vector.
use yaeos__models_ge_group_contribution_unifac_parameters, only: UNIFACParameters
use yaeos__models_ge_group_contribution_model_parameters, only: GeGCModelParameters
type(GeGCModelParameters) :: parameters
parameters = UNIFACParameters()
! Get index of the maingroup with id 55 (Sulfones: [118](CH2)2SU [119]CH2CHSU)
print *, parameters%get_maingroup_index(55) ! Will print: 52
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | maingroup_id |
ID of the subgroup |
Index of the maingroup on the self%maingroups_ids
vector