Skip to content
Snippets Groups Projects
Verified Commit cfe9c40a authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Set default value for qvec

parent 92a3604d
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,7 @@ function qvec(ao::AbstractOverlapping, index1::Union{Nothing, Integer}, index2:: ...@@ -168,7 +168,7 @@ function qvec(ao::AbstractOverlapping, index1::Union{Nothing, Integer}, index2::
if (index1 isa Number) && (index1 == index2) if (index1 isa Number) && (index1 == index2)
return zeros(3) return zeros(3)
end end
sum(qvec.(get_parts(ao, index1, index2))) sum(qvec.(get_parts(ao, index1, index2)); init=zero(SVector{3, Float64}))
end end
qvec(ao::AbstractOverlapping) = qvec(ao, nothing, nothing) qvec(ao::AbstractOverlapping) = qvec(ao, nothing, nothing)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment