Skip to content

Commit

Permalink
hubbardJ
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 18, 2019
1 parent e049394 commit e7b70a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/atom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ end
#QE params
α::T = zero(T)
β::T = zero(T)
J::Vector{T} = T[]
J::Vector{T} = T[zero(T)]
end

function ==(x::DFTU, y::DFTU)
Expand Down
4 changes: 2 additions & 2 deletions src/jobAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,9 @@ Set the Hubbard J parameter for the specified atom.
Example:
`set_Hubbard_J(job, :Ir => [2.1], :Ni => [1.0])'
"""
function set_Hubbard_J!(at::AbstractAtom, ats_Js::Pair{Symbol, Vector{<:AbstractFloat}}...; print=true)
function set_Hubbard_J!(job::DFJob, ats_Js::Pair{Symbol, <:Vector{<:AbstractFloat}}...; print=true)
for (atsym, val) in ats_Js
set_Hubbard_J!.(atoms(job, atsym), val; print=print)
set_Hubbard_J!.(atoms(job, atsym), (val,); print=print)
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/qe/fileio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ end
function qe_DFTU(speciesid::Int, parsed_flags::SymAnyDict)
U = 0.0
J0 = 0.0
J = Float64[]
J = [0.0]
α = 0.0
β = 0.0
if haskey(parsed_flags, :Hubbard_U) && length(parsed_flags[:Hubbard_U]) >= speciesid
Expand Down

0 comments on commit e7b70a7

Please sign in to comment.