Skip to content

Commit

Permalink
fix tuple((self, ))
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Dec 4, 2024
1 parent 249e2a6 commit f61c978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firedrake/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def split(self):
@utils.cached_property
def _components(self):
if self.function_space().rank == 0:
return tuple((self, ))
return (self, )
else:
if self.dof_dset.cdim == 1:
return (CoordinatelessFunction(self.function_space().sub(0), val=self.dat,
Expand Down Expand Up @@ -335,7 +335,7 @@ def split(self):
@utils.cached_property
def _components(self):
if self.function_space().rank == 0:
return tuple((self, ))
return (self, )
else:
return tuple(type(self)(self.function_space().sub(i), self.topological.sub(i))
for i in range(self.function_space().block_size))
Expand Down

0 comments on commit f61c978

Please sign in to comment.