general_active_space_occs Subroutine

public subroutine general_active_space_occs(norbtot, nelectot, gass, occs)

returns a list of occupations in occs that distributes Nelectot electrons in Norbtot orbitals where the occupations comply with the general active space definitions provides by the list of gass: gass(i)%orbitals(:) is a list defining an orbital subset gass(i)%nmin the minimum number of electrons in this orbital subset gass(i)%nmax the maximum number of electrons in this orbital subset

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: norbtot
integer, intent(in) :: nelectot
type(gas), intent(in) :: gass(:)
integer, intent(out), allocatable :: occs(:,:)