Skip to content

Commit

Permalink
Fix eps(real(scalartype))) error
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Aug 21, 2024
1 parent 7d8a839 commit 51e4b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/operators/localoperator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ struct LocalOperator{T<:Tuple,S}
end
end
function LocalOperator(
lattice::Matrix, terms::Pair...; atol=maximum(x -> eps(scalartype(x[2]))^(3 / 4), terms)
lattice::Matrix,
terms::Pair...;
atol=maximum(x -> eps(real(scalartype(x[2])))^(3 / 4), terms),
)
allinds = getindex.(terms, 1)
alloperators = getindex.(terms, 2)
Expand Down

0 comments on commit 51e4b96

Please sign in to comment.