| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(settings_type), | intent(inout) | :: | settings | |||
| type(real_space_ham_type), | intent(inout) | :: | hamiltonian | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine w90_wannier90_readwrite_read_hamil(settings, hamiltonian, error, comm) !================================================! use w90_error, only: w90_error_type implicit none real(kind=dp) :: rv_temp(3) type(real_space_ham_type), intent(inout) :: hamiltonian 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, 'translate_home_cell', found, error, comm, & l_value=hamiltonian%translate_home_cell) if (allocated(error)) return call w90_readwrite_get_keyword_vector(settings, 'translation_centre_frac', found, 3, error, comm, & r_value=rv_temp) if (allocated(error)) return if (found) then hamiltonian%translation_centre_frac = rv_temp hamiltonian%automatic_translation = .false. end if end subroutine w90_wannier90_readwrite_read_hamil