Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lattice volume calculation #185

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Fix lattice volume calculation #185

merged 1 commit into from
Apr 26, 2023

Conversation

drjbarker
Copy link
Member

Previously, the output file volume was incorrect. It was printed under the 'unitcell' heading, but the code indicatated it was the supercell volume, but the printing happens before the supercell is generated. So in the end it was always the volume of a cubic unit cell.

I've removed the volume() method from the lattice class to avoid any ambiguity about what this volume corresponds to. Now in the unit cell and lattice sections I output the correct volumes.

Previously, the output file volume was incorrect. It was printed under the 'unitcell' heading, but the code indicatated it was the supercell volume, but the printing happens before the supercell is generated. So in the end it was always the volume of a cubic unit cell.

I've removed the volume() method from the lattice class to avoid any ambiguity about what this volume corresponds to. Now in the unit cell and lattice sections I output the correct volumes.
@drjbarker drjbarker merged commit 2d874fc into master Apr 26, 2023
@drjbarker drjbarker deleted the fix-lattice-volume branch April 26, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant