Skip to content

Commit a8988ff

Browse files
committed
BaseFormOperator case
1 parent 657bea7 commit a8988ff

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

ufl/domain.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ def _(self, o: Expr, *operand_results) -> AbstractDomain:
526526
@process.register(BaseFormOperator)
527527
@DAGTraverser.postorder
528528
def _(self, o: Expr, *operand_results) -> AbstractDomain:
529-
pass
529+
fs = o.ufl_function_space()
530+
return fs.ufl_domain()
530531

531532

532533
def extract_unique_domain(expr: Expr | Form) -> AbstractDomain:
@@ -541,10 +542,6 @@ def extract_unique_domain(expr: Expr | Form) -> AbstractDomain:
541542
Returns:
542543
AbstractDomain: The unique domain extracted from the expression.
543544
"""
544-
# TODO: make this work for BaseForm
545-
# Action - Domain of 0th Argument in result
546-
# Leave AssembledMatrix and Adjoint for now
547-
# ExternalOperator or Interpolate: Domain is where we are mapping into. These are both BaseFormOperators.
548545
from ufl.form import Form, BaseForm
549546
from ufl.core.expr import Expr
550547

0 commit comments

Comments
 (0)