get_maingroup_index Function

public function get_maingroup_index(self, maingroup_id) result(maingroup_idx)

get_maingroup_index

Get index of the maingoup with id: maingoup_id

Description

Get index of the maingoup with id: maingoup_id. Gets the index of the maingoup in the self%maingoups_ids vector.

Examples

 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

References

  1. Dortmund Data Bank Software & Separation Technology

Type Bound

GeGCModelParameters

Arguments

Type IntentOptional Attributes Name
class(GeGCModelParameters) :: self
integer, intent(in) :: maingroup_id

ID of the subgroup

Return Value integer

Index of the maingroup on the self%maingroups_ids vector


Called by

proc~~get_maingroup_index~~CalledByGraph proc~get_maingroup_index GeGCModelParameters%get_maingroup_index proc~get_maingroups_aij GeGCModelParameters%get_maingroups_aij proc~get_maingroups_aij->proc~get_maingroup_index proc~get_maingroups_bij GeGCModelParameters%get_maingroups_bij proc~get_maingroups_bij->proc~get_maingroup_index proc~get_maingroups_cij GeGCModelParameters%get_maingroups_cij proc~get_maingroups_cij->proc~get_maingroup_index proc~get_subgroups_aij GeGCModelParameters%get_subgroups_aij proc~get_subgroups_aij->proc~get_maingroup_index proc~get_subgroups_bij GeGCModelParameters%get_subgroups_bij proc~get_subgroups_bij->proc~get_maingroup_index proc~get_subgroups_cij GeGCModelParameters%get_subgroups_cij proc~get_subgroups_cij->proc~get_maingroup_index proc~setup_dortmund setup_dortmund proc~setup_dortmund->proc~get_subgroups_aij proc~setup_dortmund->proc~get_subgroups_bij proc~setup_dortmund->proc~get_subgroups_cij proc~setup_unifac setup_unifac proc~setup_dortmund->proc~setup_unifac proc~setup_psrk setup_psrk proc~setup_psrk->proc~get_subgroups_aij proc~setup_psrk->proc~get_subgroups_bij proc~setup_psrk->proc~get_subgroups_cij proc~setup_psrk->proc~setup_unifac proc~setup_unifac->proc~get_subgroups_aij proc~psrk PSRK proc~psrk->proc~setup_psrk