Skip to content

Commit

Permalink
Removed all traces of cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
nakib committed Sep 20, 2024
1 parent 17ef96b commit 4c7c714
Show file tree
Hide file tree
Showing 7 changed files with 254 additions and 198 deletions.
107 changes: 0 additions & 107 deletions CMakeLists.txt

This file was deleted.

14 changes: 8 additions & 6 deletions app/elphbolt.f90
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ program elphbolt
use Green_function, only: calculate_retarded_phonon_D0
use nano_module, only: nanostructure
use bte_nano_module, only: bte_nano
use screening_module, only: calculate_RPA_dielectric_3d_G0_qpath
use screening_module, only: calculate_RPA_dielectric_3d_G0_scratch

implicit none

Expand Down Expand Up @@ -157,7 +157,8 @@ program elphbolt
!!$ !TEST/DUBUG
!!$ !Calculate RPA dielectric for q over Gamma-Gamma along x over a uniform boson energy mesh
!!$ call t_event%start_timer('RPA dielectric')
!!$ call calculate_RPA_dielectric_3d_G0_qpath(el, crys, num)
!!$ !call calculate_RPA_dielectric_3d_G0_scratch(el, crys, num, wann)
!!$ call calculate_RPA_dielectric_3d_G0_scratch(el, crys, num, wann)
!!$ call t_event%end_timer('RPA dielectric')
!!$ call exit
!!$ !!
Expand Down Expand Up @@ -244,10 +245,11 @@ program elphbolt
end if
end if

if(num%onlyebte .or. num%drag .or. num%phe) then
!After this point the electron eigenvectors are not needed
call el%deallocate_eigenvecs
end if
!TODO Need to revisit this
!!$ if(num%onlyebte .or. num%drag .or. num%phe) then
!!$ !After this point the electron eigenvectors are not needed
!!$ call el%deallocate_eigenvecs
!!$ end if

if(num%onlyphbte .or. num%drag) then
if(.not. num%read_V) then
Expand Down
12 changes: 9 additions & 3 deletions src/bte.f90
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ module bte_module
!! Electron RTA scattering rates on the IBZ due to boundary scattering.
real(r64), allocatable :: el_rta_rates_eph_ibz(:,:)
!! Electron RTA scattering rates on the IBZ due to e-ph interactions.
real(r64), allocatable :: el_rta_rates_ee_ibz(:,:)
!! Electron RTA scattering rates on the IBZ due to e-e interactions.
real(r64), allocatable :: el_rta_rates_ibz(:,:)
!! Electron RTA scattering rates on the IBZ.
real(r64), allocatable :: el_field_term_T(:,:,:)
Expand Down Expand Up @@ -217,7 +219,8 @@ subroutine dragless_ebte_RTA(Tdir, self, num, crys, sym, el, ph)

!Calculate RTA scattering rates
! e-ph and e-impurity
call calculate_el_rta_rates(self%el_rta_rates_eph_ibz, self%el_rta_rates_echimp_ibz, num, crys, el)
call calculate_el_rta_rates(self%el_rta_rates_eph_ibz, self%el_rta_rates_echimp_ibz, &
self%el_rta_rates_ee_ibz, num, crys, el)

! e-boundary
call calculate_bound_scatt_rates(el%prefix, num%elbound, crys%bound_length, &
Expand All @@ -228,7 +231,7 @@ subroutine dragless_ebte_RTA(Tdir, self, num, crys, sym, el, ph)

!Matthiessen's rule
self%el_rta_rates_ibz = self%el_rta_rates_eph_ibz + self%el_rta_rates_echimp_ibz + &
self%el_rta_rates_bound_ibz
self%el_rta_rates_ee_ibz + self%el_rta_rates_bound_ibz

!gradT field:
! Calculate field term (gradT=>I0)
Expand Down Expand Up @@ -275,9 +278,12 @@ subroutine dragless_ebte_RTA(Tdir, self, num, crys, sym, el, ph)
!Change to data output directory
call chdir(trim(adjustl(Tdir)))

!Write RTA scattering rates to file
!Write e-ph RTA scattering rates to file
call write2file_rank2_real('el.W_rta_eph', self%el_rta_rates_eph_ibz)

!Write e-e RTA scattering rates to file
call write2file_rank2_real('el.W_rta_ee', self%el_rta_rates_ee_ibz)

!Write e-chimp RTA scattering rates to file
call write2file_rank2_real('el.W_rta_echimp', self%el_rta_rates_echimp_ibz)

Expand Down
11 changes: 9 additions & 2 deletions src/bte_nano.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ module bte_nano_module
!! Electron RTA scattering rates on the IBZ due to boundary scattering.
real(r64), allocatable :: el_rta_rates_eph_ibz(:,:)
!! Electron RTA scattering rates on the IBZ due to e-ph interactions.
real(r64), allocatable :: el_rta_rates_ee_ibz(:,:)
!! Electron RTA scattering rates on the IBZ due to e-e interactions.
real(r64), allocatable :: el_rta_rates_ibz(:,:)
!! Electron RTA scattering rates on the IBZ.
real(r64), allocatable :: el_field_term_T(:,:,:)
Expand Down Expand Up @@ -299,13 +301,15 @@ subroutine dragless_ebte_RTA(Tdir, self, num, crys, sym, nano, el, ph)

!Calculate RTA scattering rates
! e-ph and e-impurity
call calculate_el_rta_rates(self%el_rta_rates_eph_ibz, self%el_rta_rates_echimp_ibz, num, crys, el)
call calculate_el_rta_rates(self%el_rta_rates_eph_ibz, self%el_rta_rates_echimp_ibz, &
self%el_rta_rates_ee_ibz, num, crys, el)

!Allocate total RTA scattering rates
allocate(self%el_rta_rates_ibz(el%nwv_irred, el%numbands))

!Matthiessen's rule
self%el_rta_rates_ibz = self%el_rta_rates_eph_ibz + self%el_rta_rates_echimp_ibz
self%el_rta_rates_ibz = self%el_rta_rates_eph_ibz + self%el_rta_rates_ee_ibz + &
self%el_rta_rates_echimp_ibz

!Compute suppresion factor for the several nanostructures
call nano%compute_suppression('el', sym, self%el_rta_rates_ibz, ph, el)
Expand Down Expand Up @@ -346,6 +350,9 @@ subroutine dragless_ebte_RTA(Tdir, self, num, crys, sym, nano, el, ph)
!Write RTA scattering rates to file
call write2file_rank2_real('el.W_rta_eph', self%el_rta_rates_eph_ibz)

!Write e-e RTA scattering rates to file
call write2file_rank2_real('el.W_rta_ee', self%el_rta_rates_ee_ibz)

!Write e-chimp RTA scattering rates to file
call write2file_rank2_real('el.W_rta_echimp', self%el_rta_rates_echimp_ibz)

Expand Down
Loading

0 comments on commit 4c7c714

Please sign in to comment.