w90_readwrite_read_total_bands Subroutine

public subroutine w90_readwrite_read_total_bands(settings, total_bands, error, comm)

Uses

  • proc~~w90_readwrite_read_total_bands~~UsesGraph proc~w90_readwrite_read_total_bands w90_readwrite_read_total_bands module~w90_error w90_error proc~w90_readwrite_read_total_bands->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

read the "total_bands" variable this is a convenience for combination with an "exclude_bands" to evaluate num_bands

Arguments

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

Calls

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

Called by

proc~~w90_readwrite_read_total_bands~~CalledByGraph proc~w90_readwrite_read_total_bands w90_readwrite_read_total_bands proc~w90_wannier90_readwrite_read_special w90_wannier90_readwrite_read_special proc~w90_wannier90_readwrite_read_special->proc~w90_readwrite_read_total_bands proc~input_reader_special input_reader_special proc~input_reader_special->proc~w90_wannier90_readwrite_read_special proc~w90_input_setopt w90_input_setopt proc~w90_input_setopt->proc~w90_wannier90_readwrite_read_special proc~w90_input_setopt_f w90_input_setopt_f proc~w90_input_setopt_f->proc~w90_input_setopt program~wannier wannier program~wannier->proc~input_reader_special

Source Code

  subroutine w90_readwrite_read_total_bands(settings, total_bands, error, comm)
    !! read the "total_bands" variable
    !! this is a convenience for combination with an "exclude_bands" to evaluate num_bands
    use w90_error, only: w90_error_type, set_error_input
    implicit none
    integer, intent(inout) :: total_bands
    type(w90_error_type), allocatable, intent(out) :: error
    type(w90_comm_type), intent(in) :: comm
    type(settings_type), intent(inout) :: settings

    logical :: found
    total_bands = 0

    call w90_readwrite_get_keyword(settings, 'total_bands', found, error, comm, i_value=total_bands)
    if (allocated(error)) return
  end subroutine w90_readwrite_read_total_bands