Skip to content

Commit

Permalink
Remove unnecessary codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergu committed Dec 31, 2024
1 parent 69c2c61 commit 2b3e396
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/SpinWaveTheory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ end
Construct a LSWT.
"""
@inline function LSWT(lattice::AbstractLattice, hilbert::Hilbert{<:Spin}, terms::OneOrMore{Term}, magneticstructure::MagneticStructure; neighbors::Union{Int, Neighbors}=nneighbor(terms))
terms = OneOrMore(terms)
isnothing(neighbors) && (neighbors=maximum(term->term.bondkind, terms))
system = OperatorGenerator(bonds(magneticstructure.cell, neighbors), hilbert, terms, plain, lazy; half=false)
hp = HolsteinPrimakoff{valtype(system)}(magneticstructure)
return LSWT{Magnonic}(lattice, system, hp)
Expand Down

0 comments on commit 2b3e396

Please sign in to comment.