From 9f9687f3c7590d5459cc9aa30bbf3714440513bf Mon Sep 17 00:00:00 2001 From: Lokman Bennani Date: Tue, 23 Jan 2024 16:18:15 +0100 Subject: [PATCH] Added a _count_n_elt function for BoundaryFaceDomains, implementation remains to be done --- src/assembler/assembler.jl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/assembler/assembler.jl b/src/assembler/assembler.jl index f0cbb9c8..ab73a276 100644 --- a/src/assembler/assembler.jl +++ b/src/assembler/assembler.jl @@ -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 @@ -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( + U::TrialFESpace, + V::TestFESpace, + domain::BoundaryFaceDomain{M, BC, L, C}, +) where {M, BC, L, C} + return 1 +end + maywrap(x) = LazyWrap(x) maywrap(x::AbstractLazyOperator) = x