Skip to content

Commit ad6d7c8

Browse files
committed
Raise exception if taping is on inside FormAssembler.assemble
1 parent 61cb5f2 commit ad6d7c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

firedrake/assemble.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ def assemble(self):
407407
408408
:returns: The assembled object.
409409
"""
410+
if annotate_tape():
411+
raise NotImplementedError(
412+
"Taping with explicit FormAssembler objects is not supported yet. "
413+
"Use assemble instead."
414+
)
415+
410416
if self._needs_zeroing:
411417
self._as_pyop2_type(self._tensor).zero()
412418

0 commit comments

Comments
 (0)