Repository navigation
Conversation
…ergy The "Adjusted version" block in threephonon_imaginary_selfenergy_tetrahedron added |psi(b1,b3,b2)|^2 to the (b2,b3) entry and then summed only b3 >= b2. The swapped term couples mode b3 at q' with mode b2 at q'', so it belongs at omega_b3(q') + omega_b2(q''), but it was integrated with the tetrahedron weights of omega_b2(q') + omega_b3(q''). Its occupation factors were also those of the unswapped modes. Remove the block, which keeps the full band sum computed just before it, and loop over all b3 again. Fixes tdep-developers#187.
ramic-k
force-pushed
the
lineshape-tetrahedron-band-swap
branch
from
October 12, 2026 13:55
d00e3c6 to
671d254
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #187.
In
threephonon_imaginary_selfenergy_tetrahedron, the block marked! Adjusted versionadded the swapped matrix element |psi(b1,b3,b2)|² to the (b2, b3) entry. The band loop then ran over b3 ≥ b2 only. The swapped term couples mode b3 at q′ with mode b2 at q″, but it was integrated at ω_b2(q′) + ω_b3(q″) with the occupations of the unswapped modes.This change removes the block and restores the full loop over b3. The full band sum computed just before the block is kept as it was.
Test (details in #187): MgO at 300 K, seven q-points, 40 mode sets, against phono3py 4.8.2 on the same force constants. The median relative difference in Γ at the mode energy falls from 19% to 0.75%. The largest falls from a factor of 7.0 to 3.2%.
Built with Meson and gfortran 16.2.0.