Skip to content

Commit

Permalink
FormSum: sort_domains (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck authored Nov 15, 2024
1 parent d835011 commit 3b29b6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ufl/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,11 +783,11 @@ def _analyze_form_arguments(self):

def _analyze_domains(self):
"""Analyze which domains can be found in FormSum."""
from ufl.domain import join_domains
from ufl.domain import join_domains, sort_domains

# Collect unique domains
self._domains = join_domains(
chain.from_iterable(e.ufl_domains() for e in self.ufl_operands)
self._domains = sort_domains(
join_domains(chain.from_iterable(e.ufl_domains() for e in self.ufl_operands))
)

def ufl_domains(self):
Expand Down Expand Up @@ -865,11 +865,11 @@ def _analyze_form_arguments(self):

def _analyze_domains(self):
"""Analyze which domains can be found in ZeroBaseForm."""
from ufl.domain import join_domains
from ufl.domain import join_domains, sort_domains

# Collect unique domains
self._domains = join_domains(
chain.from_iterable(e.ufl_domains() for e in self.ufl_operands)
self._domains = sort_domains(
join_domains(chain.from_iterable(e.ufl_domains() for e in self.ufl_operands))
)

def ufl_domains(self):
Expand Down

0 comments on commit 3b29b6c

Please sign in to comment.