encode_stochastic_rdm_x0 Subroutine

public pure subroutine encode_stochastic_rdm_x0(BitIndex, ilut, x0)

Arguments

Type IntentOptional Attributes Name
type(BitRep_t), intent(in) :: BitIndex
integer(kind=n_int), intent(inout) :: ilut(0:BitIndex%len_tot)
real(kind=dp), intent(in) :: x0

Contents


Source Code

    pure subroutine encode_stochastic_rdm_x0(BitIndex, ilut, x0)
        type(BitRep_t), intent(in) :: BitIndex
        integer(n_int), intent(inout) :: ilut(0:BitIndex%len_tot)
        real(dp), intent(in) :: x0

        integer(n_int) :: x0_int

        x0_int = transfer(x0, x0_int)

        ilut(BitIndex%ind_rdm_x0) = x0_int

    end subroutine encode_stochastic_rdm_x0