diff --git a/firedrake/cofunction.py b/firedrake/cofunction.py index f3981b7b4c..6e8bebe8bd 100644 --- a/firedrake/cofunction.py +++ b/firedrake/cofunction.py @@ -230,7 +230,7 @@ def assign(self, expr, subset=None, expr_from_assemble=False): raise ValueError('Cannot assign %s' % expr) def riesz_representation(self, riesz_map='L2', *, bcs=None, - solver_parameters=None, + solver_options=None, form_compiler_parameters=None): """Return the Riesz representation of this :class:`Cofunction`. @@ -246,7 +246,7 @@ def riesz_representation(self, riesz_map='L2', *, bcs=None, callable. bcs: DirichletBC or list of DirichletBC Boundary conditions to apply to the Riesz map. - solver_parameters: dict + solver_options: dict A dictionary of PETSc options to be passed to the solver. form_compiler_parameters: dict A dictionary of form compiler parameters to be passed to the @@ -261,7 +261,7 @@ def riesz_representation(self, riesz_map='L2', *, bcs=None, if not callable(riesz_map): riesz_map = RieszMap( self.function_space(), riesz_map, bcs=bcs, - solver_parameters=solver_parameters, + solver_parameters=solver_options, form_compiler_parameters=form_compiler_parameters ) diff --git a/firedrake/function.py b/firedrake/function.py index d296a464f6..5aae0fe561 100644 --- a/firedrake/function.py +++ b/firedrake/function.py @@ -478,7 +478,7 @@ def assign(self, expr, subset=None): Assigner(self, expr, subset).assign() return self - def riesz_representation(self, riesz_map='L2', bcs=None): + def riesz_representation(self, riesz_map='L2'): """Return the Riesz representation of this :class:`Function`. Example: For a L2 Riesz map, the Riesz representation is obtained by @@ -491,8 +491,6 @@ def riesz_representation(self, riesz_map='L2', bcs=None): collections.abc.Callable The Riesz map to use (`l2`, `L2`, or `H1`). This can also be a callable which applies the Riesz map. - bcs: DirichletBC or list of DirichletBC - Boundary conditions to apply to the Riesz map. Returns ------- @@ -501,7 +499,7 @@ def riesz_representation(self, riesz_map='L2', bcs=None): given Riesz map. """ if not callable(riesz_map): - riesz_map = RieszMap(self.function_space(), riesz_map, bcs=bcs) + riesz_map = RieszMap(self.function_space(), riesz_map) return riesz_map(self)