From 3b29b6cb03885238f68468581b4b33da0a87b29c Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Fri, 15 Nov 2024 14:10:13 +0000 Subject: [PATCH] FormSum: sort_domains (#325) --- ufl/form.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ufl/form.py b/ufl/form.py index 8aadd57d5..4fc7c2165 100644 --- a/ufl/form.py +++ b/ufl/form.py @@ -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): @@ -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):