Skip to content

Commit

Permalink
measure_options default None
Browse files Browse the repository at this point in the history
  • Loading branch information
Ig-dolci committed Dec 9, 2024
1 parent f69bca6 commit c424f16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firedrake/adjoint_utils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ def _ad_convert_riesz(self, value, options=None):
raise ValueError(
"Unknown Riesz representation %s" % riesz_representation)

def _define_riesz_map_form(self, riesz_representation, V, measure_options):
def _define_riesz_map_form(self, riesz_representation, V, measure_options=None):
from firedrake import TrialFunction, TestFunction

measure_options = {} if measure_options is None else measure_options
u = TrialFunction(V)
v = TestFunction(V)
if riesz_representation == "L2":
Expand Down

0 comments on commit c424f16

Please sign in to comment.