Skip to content

Commit

Permalink
Add handling of zero (happens with extract_block)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Oct 1, 2024
1 parent 65766dc commit 886bc85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ufl/algorithms/apply_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,8 @@ def compute_gprimeterm(ngrads, vval, vcomp, wshape, wcomp):
gprimesum = gprimesum + compute_gprimeterm(
ngrads, vval, vcomp, wshape, wcomp
)
elif isinstance(v, Zero):
pass

else:
if wshape != ():
Expand Down

0 comments on commit 886bc85

Please sign in to comment.