Skip to content

Commit

Permalink
Fix ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
jipolanco committed Feb 19, 2024
1 parent a396fe2 commit f2f148f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Recombinations/matrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ end
# Default element type of recombination matrix.
# In some specific cases we can use Bool...
_default_eltype(::Type{T}, ::BoundaryCondition) where {T <: AbstractFloat} = T
_default_eltype(::Type{T}, ::Derivative{0}) where {T} = Bool # Dirichlet BCs
_default_eltype(::Type{T}, ::Derivative{1}) where {T} = Bool # Neumann BCs
_default_eltype(::Type{T}, ::Derivative{0}) where {T <: AbstractFloat} = Bool # Dirichlet BCs
_default_eltype(::Type{T}, ::Derivative{1}) where {T <: AbstractFloat} = Bool # Neumann BCs
_default_eltype(::Type{T}, ::Vararg{AbstractDifferentialOp}) where {T <: AbstractFloat} = T

# Case (D(0), D(1), D(2), ...)
Expand Down

0 comments on commit f2f148f

Please sign in to comment.