Skip to content

Commit

Permalink
Update firedrake/preconditioners/fdm.py
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Ward <[email protected]>
  • Loading branch information
pbrubeck and connorjward authored Feb 14, 2024
1 parent 29b478c commit 8099286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firedrake/preconditioners/fdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def make_args(self, *mats):
def kernel(self, mat_type="aij", on_diag=False, addv=None):
if addv is None:
addv = PETSc.InsertMode.INSERT
indices = ("rindices", "cindices")[:2-on_diag]
indices = ("rindices",) if on_diag else ("rindices", "cindices")
code = ""
if "MatSetValuesArray" in self.code:
code = """
Expand Down

0 comments on commit 8099286

Please sign in to comment.