subroutine check_rdm_guga_setup character(*), parameter :: this_routine = "check_rdm_guga_setup" ! check if the integer types fit for out setup if (bit_size(0_n_int) /= bit_size(0_int_rdm)) then call stop_all(this_routine, "n_int and int_rdm have different size!") end if ! we use some bits in the rdm_ind for other information.. ! check if we still have enough space for all the indices.. if (nSpatOrbs**4 > 2**(bit_size(int_rdm) - n_excit_info_bits - 1) - 1) then call stop_all(this_routine, "cannot store enough indices in rdm_ind!") end if end subroutine check_rdm_guga_setup