Skip to content

Commit

Permalink
lift dimension constrain
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed May 21, 2024
1 parent bb75b19 commit 13ff3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boundaryconditions/BoundaryConditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include("no_slip.jl")
include("pure_shear.jl")

@inline bc_index(x::NTuple{2,T}) where {T} = mapreduce(xi -> max(size(xi)...), max, x)
@inline bc_index(x::T) where {T<:AbstractArray{<:Any,2}} = max(size(x)...)
@inline bc_index(x::T) where {T<:AbstractArray} = max(size(x)...)

@inline function bc_index(x::NTuple{3,T}) where {T}
n = mapreduce(xi -> max(size(xi)...), max, x)
Expand Down

0 comments on commit 13ff3c1

Please sign in to comment.