| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(sitesym_type), | intent(inout) | :: | sitesym | |||
| integer, | intent(in) | :: | num_wann | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine sitesym_replace_d_matrix_band(sitesym, num_wann, error, comm) !================================================! use w90_wannier90_types, only: sitesym_type implicit none integer, intent(in) :: num_wann type(sitesym_type), intent(inout) :: sitesym type(w90_comm_type), intent(in) :: comm type(w90_error_type), allocatable, intent(out) :: error integer :: ierr deallocate (sitesym%d_matrix_band, stat=ierr) if (ierr /= 0) then call set_error_dealloc(error, 'Error in deallocating sitesym%d_matrix_band in sitesym_replace_d_matrix_band', comm) return end if allocate (sitesym%d_matrix_band(num_wann, num_wann, sitesym%nsymmetry, sitesym%nkptirr), stat=ierr) if (ierr /= 0) then call set_error_alloc(error, 'Error in allocating sitesym%d_matrix_band in sitesym_replace_d_matrix_band', comm) return end if sitesym%d_matrix_band = sitesym%d_matrix_wann return end subroutine sitesym_replace_d_matrix_band