diff --git a/firedrake/functionspaceimpl.py b/firedrake/functionspaceimpl.py index f20526ab50..1d3bd2bf24 100644 --- a/firedrake/functionspaceimpl.py +++ b/firedrake/functionspaceimpl.py @@ -195,9 +195,9 @@ def _components(self): @PETSc.Log.EventDecorator() def sub(self, i): - bound = len(self._components) - if i < 0 or i >= bound: - raise IndexError("Invalid component %d, not in [0, %d)" % (i, bound)) + #bound = len(self._components) + #if i < 0 or i >= bound: + # raise IndexError("Invalid component %d, not in [0, %d)" % (i, bound)) if len(self) == 1: return self._components[i] else: