Skip to content

Commit

Permalink
Add comm to VectorSpaceBasis to silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Jul 11, 2024
1 parent 5ca4034 commit 338d484
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/regression/test_star_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def test_star_equivalence(problem_type, backend):
a = inner(grad(z), grad(v))*dx + inner(p, q)*dx

bcs = DirichletBC(V.sub(0), Constant((1., 0.)), "on_boundary")
nsp = MixedVectorSpaceBasis(V, [V.sub(0), VectorSpaceBasis(constant=True)])
nsp = MixedVectorSpaceBasis(
V, [V.sub(0), VectorSpaceBasis(constant=True, comm=COMM_WORLD)]
)

star_params = {"mat_type": "aij",
"snes_type": "ksponly",
Expand Down Expand Up @@ -299,7 +301,9 @@ def test_vanka_equivalence(problem_type):
a = inner(grad(z), grad(v))*dx - inner(p, div(v))*dx - inner(div(z), q)*dx

bcs = DirichletBC(V.sub(0), Constant((1., 0.)), "on_boundary")
nsp = MixedVectorSpaceBasis(V, [V.sub(0), VectorSpaceBasis(constant=True)])
nsp = MixedVectorSpaceBasis(
V, [V.sub(0), VectorSpaceBasis(constant=True, comm=COMM_WORLD)]
)

vanka_params = {"mat_type": "aij",
"snes_type": "ksponly",
Expand Down

0 comments on commit 338d484

Please sign in to comment.