Skip to content

Commit

Permalink
sort_domains
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Nov 15, 2024
1 parent 55359e0 commit e7eb101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions firedrake/assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ def _integral_type(self):

@cached_property
def _mesh(self):
return tuple(self._form.ufl_domains())[self._kinfo.domain_number]
return self._form.ufl_domains()[self._kinfo.domain_number]

@cached_property
def _needs_subset(self):
Expand Down Expand Up @@ -1970,7 +1970,7 @@ def _indexed_function_spaces(self):

@cached_property
def _mesh(self):
return tuple(self._form.ufl_domains())[self._kinfo.domain_number]
return self._form.ufl_domains()[self._kinfo.domain_number]

@cached_property
def _iterset(self):
Expand Down
4 changes: 2 additions & 2 deletions firedrake/slate/slate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from ufl.algorithms.map_integrands import map_integrand_dags
from ufl.corealg.multifunction import MultiFunction
from ufl.classes import Zero
from ufl.domain import join_domains
from ufl.domain import join_domains, sort_domains
from ufl.form import Form
import hashlib

Expand Down Expand Up @@ -983,7 +983,7 @@ def ufl_domains(self):
the tensor.
"""
collected_domains = [op.ufl_domains() for op in self.operands]
return join_domains(chain(*collected_domains))
return sort_domains(join_domains(chain(*collected_domains)))

def subdomain_data(self):
"""Returns a mapping on the tensor:
Expand Down

0 comments on commit e7eb101

Please sign in to comment.