Skip to content

Commit a548b98

Browse files
committed
Fix up
1 parent ee99351 commit a548b98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

firedrake/interpolation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,6 @@ def __init__(
462462
# Probably just need to pass freeze_expr to the various
463463
# interpolators for this to work.
464464
raise NotImplementedError("freeze_expr not implemented")
465-
if access != op2.WRITE:
466-
raise NotImplementedError("access other than op2.WRITE not implemented")
467465
if bcs:
468466
raise NotImplementedError("bcs not implemented")
469467
if V.ufl_element().mapping() != "identity":
@@ -476,6 +474,9 @@ def __init__(
476474
)
477475
super().__init__(expr, V, subset, freeze_expr, access, bcs, allow_missing_dofs, matfree)
478476

477+
if self.access != op2.WRITE:
478+
raise NotImplementedError("access other than op2.WRITE not implemented")
479+
479480
expr = self.expr_renumbered
480481
self.arguments = extract_arguments(expr)
481482
self.nargs = len(self.arguments)

0 commit comments

Comments
 (0)