You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the pw90common_fourier_R_to_k_new and pw90common_fourier_R_to_k_vec in postw90_common.F90, I noticed they produce different results, which is caused by the repeated lines in pw90common_fourier_R_to_k_vec.
In the use_ws_distance = .true. branch, the rdotk and phase_fac are calculated twice. The first two lines use the new Wigner-Seitz cell interpolation, while the last two lines use the old interpolation. As a result, the old interpolation replaces the Wigner-Seitz cell interpolation. The last two lines should be deleted.
There are repeated lines in pw90common_fourier_R_to_k_vec_dadb as well.
When I change the wrong pw90common_fourier_R_to_k_vec to the correct pw90common_fourier_R_to_k_new, the testpostw90_pt_shc test case produces large deviations,
Fortunately, when using a denser berry_kmesh like 100 * 100 * 100, the final result doesn't change much compared to previous calculations:
The Pt-shc-fermiscan.dat.old.10 and Pt-shc-fermiscan.dat.old.100 are calculated with the develop branch, the Pt-shc-fermiscan.dat.new.10 and Pt-shc-fermiscan.dat.new.100 are calculated with my modified branch, which uses pw90common_fourier_R_to_k_new instead of pw90common_fourier_R_to_k_vec.
When this problem is fixed, I may need to update benchmark files in the SHC test cases.
The text was updated successfully, but these errors were encountered:
When using the
pw90common_fourier_R_to_k_new
andpw90common_fourier_R_to_k_vec
inpostw90_common.F90
, I noticed they produce different results, which is caused by the repeated lines inpw90common_fourier_R_to_k_vec
.wannier90/src/postw90/postw90_common.F90
Lines 1083 to 1086 in 280f382
In the
use_ws_distance = .true.
branch, therdotk
andphase_fac
are calculated twice. The first two lines use the new Wigner-Seitz cell interpolation, while the last two lines use the old interpolation. As a result, the old interpolation replaces the Wigner-Seitz cell interpolation. The last two lines should be deleted.There are repeated lines in
pw90common_fourier_R_to_k_vec_dadb
as well.wannier90/src/postw90/postw90_common.F90
Lines 1170 to 1173 in 280f382
The SHC code uses both
pw90common_fourier_R_to_k_new
andpw90common_fourier_R_to_k_vec
wannier90/src/postw90/berry.F90
Line 1959 in 280f382
wannier90/src/postw90/berry.F90
Line 1966 in 280f382
When I change the wrong
pw90common_fourier_R_to_k_vec
to the correctpw90common_fourier_R_to_k_new
, thetestpostw90_pt_shc
test case produces large deviations,Fortunately, when using a denser
berry_kmesh
like100 * 100 * 100
, the final result doesn't change much compared to previous calculations:The
Pt-shc-fermiscan.dat.old.10
andPt-shc-fermiscan.dat.old.100
are calculated with thedevelop
branch, thePt-shc-fermiscan.dat.new.10
andPt-shc-fermiscan.dat.new.100
are calculated with my modified branch, which usespw90common_fourier_R_to_k_new
instead ofpw90common_fourier_R_to_k_vec
.When this problem is fixed, I may need to update benchmark files in the SHC test cases.
The text was updated successfully, but these errors were encountered: