From 6342340fc9cccddfc1afef9d184d4d4c410de377 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Fri, 15 Nov 2024 13:51:15 +0000 Subject: [PATCH] FormSum: sort_domains --- ufl/form.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ufl/form.py b/ufl/form.py index 8aadd57d5..32f347f57 100644 --- a/ufl/form.py +++ b/ufl/form.py @@ -783,12 +783,12 @@ 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( + self._domains = sort_domains(join_domains( chain.from_iterable(e.ufl_domains() for e in self.ufl_operands) - ) + )) def ufl_domains(self): """Return all domains found in the base form.""" @@ -865,12 +865,12 @@ 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( + self._domains = sort_domains(join_domains( chain.from_iterable(e.ufl_domains() for e in self.ufl_operands) - ) + )) def ufl_domains(self): """Return all domains found in the base form."""