Get index of the subgroup with id: subgroup_id
Get index of the subgroup with id: subgroup_id
. Gets the index of the
subgroup in the self%subgroups_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
! Default parameters of UNIFAC (ddbst)
parameters = UNIFACParameters()
! Get index of the subgroup with id 178 (IMIDAZOL)
print *, parameters%get_subgroup_index(178) ! Will print: 112
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeGCModelParameters) | :: | self | ||||
integer, | intent(in) | :: | subgroup_id |
ID of the subgroup |
Index of the subgroup on the self%subgroups_ids
vector