transfer_stochastic_rdm_info Subroutine

public pure subroutine transfer_stochastic_rdm_info(ilutG, ilutN, BitIndex_from, BitIndex_to)

Arguments

Type IntentOptional Attributes Name
integer(kind=n_int), intent(in) :: ilutG(0:)
integer(kind=n_int), intent(inout) :: ilutN(0:)
type(BitRep_t), intent(in), optional :: BitIndex_from
type(BitRep_t), intent(in), optional :: BitIndex_to

Contents


Source Code

    pure subroutine transfer_stochastic_rdm_info(ilutG, ilutN, &
                                                 BitIndex_from, BitIndex_to)
        ! I need to keep this general with BitIndex unfortunately because
        ! i have to perform this on ilut with niftot and on parent arrays..
        integer(n_int), intent(in) :: ilutG(0:)
        integer(n_int), intent(inout) :: ilutN(0:)
        type(BitRep_t), intent(in), optional :: BitIndex_from, BitIndex_to

        type(BitRep_t) :: from, to

        def_default(from, BitIndex_from, GugaBits)
        def_default(to, BitIndex_to, IlutBits)

        ! here i now I get a GUGA ilut, but could be that I have to
        ! transfer to Parent array? I dont think so..

        call encode_stochastic_rdm_info(to, ilutN, &
                                        rdm_ind=extract_stochastic_rdm_ind(from, ilutG), &
                                        x0=extract_stochastic_rdm_x0(from, ilutG), &
                                        x1=extract_stochastic_rdm_x1(from, ilutG))

    end subroutine transfer_stochastic_rdm_info