| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(sitesym_type), | intent(inout) | :: | sitesym | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine sitesym_dealloc(sitesym, error, comm) !================================================! use w90_wannier90_types, only: sitesym_type implicit none type(sitesym_type), intent(inout) :: sitesym type(w90_error_type), allocatable, intent(out) :: error type(w90_comm_type), intent(in) :: comm integer :: ierr deallocate (sitesym%ik2ir, stat=ierr) if (ierr /= 0) then call set_error_dealloc(error, 'Error in deallocating sitesym%ik2ir in sitesym_dealloc', comm) return end if deallocate (sitesym%ir2ik, stat=ierr) if (ierr /= 0) then call set_error_dealloc(error, 'Error in deallocating sitesym%ir2ik in sitesym_dealloc', comm) return end if deallocate (sitesym%kptsym, stat=ierr) if (ierr /= 0) then call set_error_dealloc(error, 'Error in deallocating sitesym%kptsym in sitesym_dealloc', comm) return end if 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_dealloc', comm) return end if deallocate (sitesym%d_matrix_wann, stat=ierr) if (ierr /= 0) then call set_error_dealloc(error, 'Error in deallocating sitesym%d_matrix_wann in sitesym_dealloc', comm) return end if return end subroutine sitesym_dealloc