InitExcitVecs Subroutine

public subroutine InitExcitVecs(session)

Arguments

Type IntentOptional Attributes Name
type(ExcitGenSessionType), intent(inout) :: session

Contents

Source Code


Source Code

    subroutine InitExcitVecs(session)
        implicit none
        type(ExcitGenSessionType), intent(inout) :: session
        call DestructExcitVecs(session)
        allocate(session%elecIndices(session%rank))
        allocate(session%holeIndices(session%rank))
        ! to indicate initialised indices
        session%elecIndices(1) = 0
        session%holeIndices(1) = 0
        allocate(session%elecSpinOrbs(session%rank))
        allocate(session%holeSpinOrbs(session%rank))
    end subroutine InitExcitVecs