Skip to content

Commit

Permalink
Deleted unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Aug 27, 2024
1 parent 74b6333 commit 54eb448
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/FormFactor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,6 @@ function compute_form_factor(form_factor::FormFactor, q2_absolute::Float64)
end
end

# Given a form factor for each "symmetry class" of sites, return a form factor
# for each atom in the crystal.
function propagate_form_factors_to_atoms(ffs, cryst::Crystal)
isnothing(ffs) && return fill(one(FormFactor), natoms(cryst))

ref_classes = unique(cryst.classes)
if length(ffs) != length(ref_classes)
error("""Received $(length(ffs)) form factors, but $(length(ref_classes)) are
required, one for each symmetry-distinct site in the crystal.""")
end

return [ffs[findfirst(==(c), ref_classes)] for c in cryst.classes]
end


const radial_integral_coefficients = Dict(
# 3d electrons of transition atoms and ions (P. J. Brown)
Expand Down

0 comments on commit 54eb448

Please sign in to comment.