From ed0e3b11481bf36711bf2ad0c20dde22e7671fa9 Mon Sep 17 00:00:00 2001 From: ksagiyam Date: Sat, 16 Nov 2024 00:40:06 +0000 Subject: [PATCH] todo --- firedrake/functionspaceimpl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: