w90_wannier90_readwrite_read_plot_info Subroutine

private subroutine w90_wannier90_readwrite_read_plot_info(settings, wvfn_read, error, comm)

Uses

  • proc~~w90_wannier90_readwrite_read_plot_info~~UsesGraph proc~w90_wannier90_readwrite_read_plot_info w90_wannier90_readwrite_read_plot_info module~w90_error w90_error proc~w90_wannier90_readwrite_read_plot_info->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(wvfn_read_type), intent(inout) :: wvfn_read
type(w90_error_type), intent(out), allocatable :: error
type(w90_comm_type), intent(in) :: comm

Calls

proc~~w90_wannier90_readwrite_read_plot_info~~CallsGraph proc~w90_wannier90_readwrite_read_plot_info w90_wannier90_readwrite_read_plot_info proc~set_error_input set_error_input proc~w90_wannier90_readwrite_read_plot_info->proc~set_error_input proc~w90_readwrite_get_keyword w90_readwrite_get_keyword proc~w90_wannier90_readwrite_read_plot_info->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_plot_info~~CalledByGraph proc~w90_wannier90_readwrite_read_plot_info w90_wannier90_readwrite_read_plot_info proc~w90_wannier90_readwrite_read w90_wannier90_readwrite_read proc~w90_wannier90_readwrite_read->proc~w90_wannier90_readwrite_read_plot_info 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_plot_info(settings, wvfn_read, error, comm)
    !================================================!
    ! Plotting
    !================================================!
    use w90_error, only: w90_error_type
    implicit none

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

    logical :: found
    character(len=6) :: spin_str

    call w90_readwrite_get_keyword(settings, 'wvfn_formatted', found, error, comm, &
                                   l_value=wvfn_read%formatted)
    if (allocated(error)) return

    call w90_readwrite_get_keyword(settings, 'spin', found, error, comm, c_value=spin_str)
    if (allocated(error)) return
    if (found) then
      if (index(spin_str, 'up') > 0) then
        wvfn_read%spin_channel = 1
      elseif (index(spin_str, 'down') > 0) then
        wvfn_read%spin_channel = 2
      else
        call set_error_input(error, 'Error: unrecognised value of spin found: '//trim(spin_str), comm)
        return
      end if
    end if

  end subroutine w90_wannier90_readwrite_read_plot_info