Repository navigation
Conversation
… units The q-point dataset stored qpt%r, which is held in 1/bohr, under the label 1/A. Convert it with /lo_bohr_to_A, as the band-structure writer does. write_structure_to_hdf5 stored the lattice vectors, held in bohr, divided by lo_Bohr_to_A and labelled 1/A. Multiply by lo_Bohr_to_A and label them A. This also corrects the structure group of the thermal-conductivity output. Fixes tdep-developers#188.
ramic-k
force-pushed
the
lineshape-hdf5-units
branch
from
October 12, 2026 13:55
23c83fe to
31532bf
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 #188.
src/lineshape/io.f90: theq-pointdataset storedqpt%r, which is in 1/bohr, under the label 1/A. It is now converted with/lo_bohr_to_A, as the band-structure writer does.src/libolle/type_crystalstructure_io.f90,write_structure_to_hdf5: the lattice vectors, held in bohr, were divided bylo_Bohr_to_Aand labelled 1/A. They are now multiplied bylo_Bohr_to_Aand labelled A. This also corrects thestructuregroup of the thermal-conductivity output.Checked on the MgO case in #188: the stored q-point equals (−0.25, −0.5, 0.25) times the stored reciprocal lattice vectors, and the stored lattice vectors times the transposed reciprocal vectors give the identity. The self-energies are unchanged.
Built with Meson and gfortran 16.2.0.