Skip to content

Commit

Permalink
up spglib (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst authored Nov 10, 2023
1 parent 81f9c39 commit 4f3354b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Requires = "1"
Roots = "2"
SparseArrays = "1"
SpecialFunctions = "2"
Spglib = "=0.8.4"
Spglib = "0.8.5"
StaticArrays = "1"
Statistics = "1"
TimerOutputs = "0.5.12"
Expand Down
3 changes: 2 additions & 1 deletion src/postprocess/dos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# N(ε) = sum_n f_n = sum_n f((εn-ε)/temperature)
# DOS (density of states)
# D(ε) = N'(ε)
#
# LDOS (local density of states)
# LD = sum_n f_n |ψn|^2
# LD(ε) = sum_n f_n' |ψn|^2 = sum_n δ(ε - ε_n) |ψn|^2

"""
Total density of states at energy ε
Expand Down
2 changes: 1 addition & 1 deletion src/symmetry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ end

# Temporary workaround until Spglib.jl exports this function
function spglib_get_symmetry_with_collinear_spin(cell::Spglib.SpglibCell, symprec=1e-5)
lattice, positions, atoms, spins = Spglib._expand_cell(cell)
lattice, positions, atoms, spins = Spglib._unwrap_convert(cell)
num_atom = length(cell.magmoms)
# See https://github.com/spglib/spglib/blob/42527b0/python/spglib/spglib.py#L270
max_size = 96num_atom # 96 = 48 × 2 since we have spins
Expand Down

0 comments on commit 4f3354b

Please sign in to comment.