Get the subgroup’s maingroup
Uses the self%subgroups_maingroups attribute to locate the maingroup
where the subgroup with id subgroup_id belongs
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 the maingroup of the subgroup with id 16 (H2O)
print *, parameters%get_subgroup_maingroup(16) ! Will print: 7
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(GeGCModelParameters) | :: | self | ||||
| integer, | intent(in) | :: | subgroup_id |
ID of the subgroup |
Maingroup of the subgroup
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | subgroup_idx |