Skip to content

Commit 4fa5d10

Browse files
committed
add method
1 parent 1b1c7e5 commit 4fa5d10

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/IntegDomainModule.jl

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,30 @@ function IntegDomain(
7575
integration_rule::IR,
7676
otherdimension::T,
7777
) where {S<:AbstractFESet,IR<:AbstractIntegRule,T<:Number}
78-
function otherdimensionfu(loc::Matrix{T}, conn::CC, N::Matrix{T}) where {CC,T<:Number}
78+
function otherdimensionfu(loc::AbstractVecOrMat{<:Real}, conn::CC, N::AbstractMatrix{<:Real}) where {CC}
7979
return otherdimension
8080
end
8181
return IntegDomain(fes, integration_rule, otherdimensionfu, false)
8282
end
8383

84+
"""
85+
IntegDomain(
86+
fes::S,
87+
integration_rule::IR,
88+
otherdimension::F,
89+
) where {S<:AbstractFESet, IR<:AbstractIntegRule, F<:Function}
90+
91+
Construct with the default orientation matrix (identity), and other
92+
dimension provided by a function.
93+
"""
94+
function IntegDomain(
95+
fes::S,
96+
integration_rule::IR,
97+
otherdimension::F,
98+
) where {S<:AbstractFESet, IR<:AbstractIntegRule, F<:Function}
99+
return IntegDomain(fes, integration_rule, otherdimension, false)
100+
end
101+
84102
"""
85103
IntegDomain(
86104
fes::S,

0 commit comments

Comments
 (0)