Skip to content

Commit

Permalink
Added a _count_n_elt function for BoundaryFaceDomains, implementation…
Browse files Browse the repository at this point in the history
… remains to be done
  • Loading branch information
Lokman Bennani committed Jan 23, 2024
1 parent 200c85c commit 9f9687f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/assembler/assembler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ on a cell domain, where `U` and `V` are `AbstractMultiFESpace`
function _count_n_elts(
U::AbstractMultiFESpace{N, Tu},
V::AbstractMultiFESpace{N, Tv},
domain::CellDomain{M, IND},
) where {M, IND, N, Tu <: Tuple{Vararg{TrialFESpace}}, Tv <: Tuple{Vararg{TestFESpace}}}
domain::AbstractDomain,
) where {N, Tu <: Tuple{Vararg{TrialFESpace}}, Tv <: Tuple{Vararg{TestFESpace}}}
n = 0
for _U in U
for _V in V
Expand All @@ -456,6 +456,20 @@ function _count_n_elts(
return n
end

"""
Count the (maximum) number of elements in the matrix corresponding to the bilinear assembly of U, V
on a boundary face domain, where `U` and `V` are `TrialFESpace` and `TestFESpace`
TO DO: for the moment this function is not really implemented. It requires to be able to distinguish between
the usual TrialsFESpace and MultiplierFESpace.
"""
function _count_n_elts(

Check warning on line 465 in src/assembler/assembler.jl

View check run for this annotation

Codecov / codecov/patch

src/assembler/assembler.jl#L465

Added line #L465 was not covered by tests
U::TrialFESpace,
V::TestFESpace,
domain::BoundaryFaceDomain{M, BC, L, C},
) where {M, BC, L, C}
return 1

Check warning on line 470 in src/assembler/assembler.jl

View check run for this annotation

Codecov / codecov/patch

src/assembler/assembler.jl#L470

Added line #L470 was not covered by tests
end

maywrap(x) = LazyWrap(x)
maywrap(x::AbstractLazyOperator) = x

Expand Down

0 comments on commit 9f9687f

Please sign in to comment.