| Type | Intent | Optional | 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 |
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