Skip to content

Commit

Permalink
Fixing the fix ...
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Jun 2, 2024
1 parent 36059fe commit f52ae14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from mpi4py.MPI import COMM_WORLD
import pytest

from ngsPETSc.pc import *
from ngsPETSc.pc import PETScPreconditioner

def test_pc():
'''
Expand Down Expand Up @@ -92,7 +92,7 @@ def test_pc_hiptmaier_xu_sor():
solverParameters={"pc_type":"bddc"})
aH1.Assemble()
transform = fesH1.ConvertL2Operator(fesDG)
pre = transform @ preH1.mat @ transform.T + smoother.mat
pre = transform @ preH1 @ transform.T + smoother.mat
CG(mat=aDG.mat, rhs=fDG.vec, sol=gfuDG.vec, pre=pre, printrates = True, maxsteps=200)
lam = EigenValues_Preconditioner(aDG.mat, pre)
assert (lam.NumPy()<3.0).all()
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_pc_hiptmaier_xu_bjacobi():
solverParameters={"pc_type":"bddc"})
aH1.Assemble()
transform = fesH1.ConvertL2Operator(fesDG)
pre = transform @ preH1.mat @ transform.T + smoother.mat
pre = transform @ preH1 @ transform.T + smoother.mat
CG(mat=aDG.mat, rhs=fDG.vec, sol=gfuDG.vec, pre=pre, printrates = True, maxsteps=200)
lam = EigenValues_Preconditioner(aDG.mat, pre)
assert (lam.NumPy()<3.0).all()
Expand Down

0 comments on commit f52ae14

Please sign in to comment.