Skip to content

Commit

Permalink
Raise exception if taping is on inside FormAssembler.assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Nov 17, 2022
1 parent 61cb5f2 commit ad6d7c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firedrake/assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ def assemble(self):
:returns: The assembled object.
"""
if annotate_tape():
raise NotImplementedError(
"Taping with explicit FormAssembler objects is not supported yet. "
"Use assemble instead."
)

if self._needs_zeroing:
self._as_pyop2_type(self._tensor).zero()

Expand Down

0 comments on commit ad6d7c8

Please sign in to comment.