Skip to content

Commit

Permalink
DFTKCalculator show
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Nov 30, 2024
1 parent e0d5e82 commit 05fe3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ local_potential_real(el::ElementCoulomb, r::Real) = -el.Z / r
struct ElementPsp <: Element
Z::Int # Nuclear charge
symbol::Symbol # Element symbol
psp # Pseudopotential data structure
mass # Atomic mass
psp # Pseudopotential data structure
end
function Base.show(io::IO, el::ElementPsp)
pspid = isempty(el.psp.identifier) ? "custom" : el.psp.identifier
Expand Down Expand Up @@ -130,7 +130,7 @@ function ElementPsp(symbol::Symbol, family::AbstractDict; mass=element(symbol).a
end
function ElementPsp(symbol::Symbol, psp; mass=element(symbol).atomic_mass)
Z = periodic_table[symbol].number
ElementPsp(Z, symbol, psp, mass)
ElementPsp(Z, symbol, mass, psp)
end
ElementPsp(symbol::Symbol, psp::Nothing; kwargs...) = ElementCoulomb(symbol; kwargs...)
ElementPsp(key, psp; kwargs...) = ElementPsp(Symbol(periodic_table[key].symbol), psp; kwargs...)
Expand Down

2 comments on commit 05fe3b4

@mfherbst
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Note that this release increases the minor version and contains a number of breaking changes:

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/120456

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.0 -m "<description of version>" 05fe3b407c33a926235d5383bba23834898918ae
git push origin v0.7.0

Please sign in to comment.