Skip to content

Commit

Permalink
set ises for nullspace
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Sep 28, 2021
1 parent 009c014 commit 701d6eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions firedrake/preconditioners/pmg.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,13 @@ def coarsen_nullspace(coarse_V, mat, fine_nullspace):
return fine_nullspace

I, _ = self.create_interpolation(cdm, fdm)
ises = cV._ises
cctx._nullspace = coarsen_nullspace(cV, I, fctx._nullspace)
cctx.set_nullspace(cctx._nullspace, transpose=False, near=False)
cctx.set_nullspace(cctx._nullspace, ises, transpose=False, near=False)
cctx._nullspace_T = coarsen_nullspace(cV, I, fctx._nullspace_T)
cctx.set_nullspace(cctx._nullspace_T, transpose=True, near=False)
cctx.set_nullspace(cctx._nullspace_T, ises, transpose=True, near=False)
cctx._near_nullspace = coarsen_nullspace(cV, I, fctx._near_nullspace)
cctx.set_nullspace(cctx._near_nullspace, transpose=False, near=True)
cctx.set_nullspace(cctx._near_nullspace, ises, transpose=False, near=True)
return cdm

@staticmethod
Expand Down

0 comments on commit 701d6eb

Please sign in to comment.