w90_wannier90_readwrite_read_dist_cutoff Subroutine

private subroutine w90_wannier90_readwrite_read_dist_cutoff(settings, real_space_ham, error, comm)

Uses

  • proc~~w90_wannier90_readwrite_read_dist_cutoff~~UsesGraph proc~w90_wannier90_readwrite_read_dist_cutoff w90_wannier90_readwrite_read_dist_cutoff module~w90_error w90_error proc~w90_wannier90_readwrite_read_dist_cutoff->module~w90_error module~w90_comms w90_comms module~w90_error->module~w90_comms module~w90_error_base w90_error_base module~w90_error->module~w90_error_base module~w90_comms->module~w90_error_base module~w90_constants w90_constants module~w90_comms->module~w90_constants

Arguments

Type IntentOptional Attributes Name
type(settings_type), intent(inout) :: settings
type(real_space_ham_type), intent(inout) :: real_space_ham
type(w90_error_type), intent(out), allocatable :: error
type(w90_comm_type), intent(in) :: comm

Calls

proc~~w90_wannier90_readwrite_read_dist_cutoff~~CallsGraph proc~w90_wannier90_readwrite_read_dist_cutoff w90_wannier90_readwrite_read_dist_cutoff proc~set_error_input set_error_input proc~w90_wannier90_readwrite_read_dist_cutoff->proc~set_error_input proc~w90_readwrite_get_keyword w90_readwrite_get_keyword proc~w90_wannier90_readwrite_read_dist_cutoff->proc~w90_readwrite_get_keyword proc~comms_sync_error comms_sync_error proc~set_error_input->proc~comms_sync_error proc~set_base_error set_base_error proc~set_error_input->proc~set_base_error proc~w90_readwrite_get_keyword->proc~set_error_input proc~set_error_fatal set_error_fatal proc~w90_readwrite_get_keyword->proc~set_error_fatal proc~set_error_fatal->proc~comms_sync_error proc~set_error_fatal->proc~set_base_error

Called by

proc~~w90_wannier90_readwrite_read_dist_cutoff~~CalledByGraph proc~w90_wannier90_readwrite_read_dist_cutoff w90_wannier90_readwrite_read_dist_cutoff proc~w90_wannier90_readwrite_read w90_wannier90_readwrite_read proc~w90_wannier90_readwrite_read->proc~w90_wannier90_readwrite_read_dist_cutoff proc~w90_input_reader~2 w90_input_reader proc~w90_input_reader~2->proc~w90_wannier90_readwrite_read proc~w90_input_setopt w90_input_setopt proc~w90_input_setopt->proc~w90_wannier90_readwrite_read proc~w90_input_reader w90_input_reader proc~w90_input_reader->proc~w90_input_reader~2 proc~w90_input_setopt_f w90_input_setopt_f proc~w90_input_setopt_f->proc~w90_input_setopt program~wannier wannier program~wannier->proc~w90_input_reader~2

Source Code

  subroutine w90_wannier90_readwrite_read_dist_cutoff(settings, real_space_ham, error, comm)
    !================================================!
    use w90_error, only: w90_error_type
    implicit none

    type(real_space_ham_type), intent(inout) :: real_space_ham
    type(settings_type), intent(inout) :: settings
    type(w90_comm_type), intent(in) :: comm
    type(w90_error_type), allocatable, intent(out) :: error

    logical :: found

    call w90_readwrite_get_keyword(settings, 'dist_cutoff_mode', found, error, comm, &
                                   c_value=real_space_ham%dist_cutoff_mode)
    if (allocated(error)) return
    if ((index(real_space_ham%dist_cutoff_mode, 'three_dim') .eq. 0) &
        .and. (index(real_space_ham%dist_cutoff_mode, 'two_dim') .eq. 0) &
        .and. (index(real_space_ham%dist_cutoff_mode, 'one_dim') .eq. 0)) then
      call set_error_input(error, 'Error: dist_cutoff_mode not recognised', comm)
      return
    end if

    call w90_readwrite_get_keyword(settings, 'dist_cutoff', found, error, comm, &
                                   r_value=real_space_ham%dist_cutoff)
    if (allocated(error)) return

    real_space_ham%dist_cutoff_hc = real_space_ham%dist_cutoff
    call w90_readwrite_get_keyword(settings, 'dist_cutoff_hc', found, error, comm, &
                                   r_value=real_space_ham%dist_cutoff_hc)
    if (allocated(error)) return

    call w90_readwrite_get_keyword(settings, 'hr_cutoff', found, error, comm, &
                                   r_value=real_space_ham%hr_cutoff)
    if (allocated(error)) return

    call w90_readwrite_get_keyword(settings, 'bands_plot_dim', found, error, comm, &
                                   i_value=real_space_ham%system_dim)
    if (allocated(error)) return

  end subroutine w90_wannier90_readwrite_read_dist_cutoff