Skip to content

Commit

Permalink
dolfinx.fem.VectorFunctionSpace has been deprecated in favor of passi…
Browse files Browse the repository at this point in the history
…ng a shape argument to dolfin.fem.FunctionSpace. dolfinx.fem.TensorFunctionSpace has been removed altogether, and replaced in a similar way. Furthermore, the base function space class has been renamed to dolfinx.fem.FunctionSpaceBase, with dolfinx.fem.FunctionSpace being a deprecated free function which calls dolfinx.fem.functionspace.
  • Loading branch information
francesco-ballarin committed Sep 11, 2023
1 parent 4d8c8c1 commit 309dde9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/utils/test_name_scalar_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_name_scalar_1_dolfinx() -> None:
mpi4py = pytest.importorskip("mpi4py")
pytest.importorskip("mpi4py.MPI")
mesh = dolfinx.mesh.create_unit_square(mpi4py.MPI.COMM_WORLD, 2, 2)
V = dolfinx.fem.FunctionSpace(mesh, ("Lagrange", 1))
V = dolfinx.fem.functionspace(mesh, ("Lagrange", 1))

u = ufl.TrialFunction(V)
v = ufl.TestFunction(V)
Expand Down Expand Up @@ -68,9 +68,9 @@ def test_name_scalar_13_dolfinx() -> None:
pytest.importorskip("petsc4py.PETSc")

mesh = dolfinx.mesh.create_unit_square(mpi4py.MPI.COMM_WORLD, 2, 2)
scalar_V = dolfinx.fem.FunctionSpace(mesh, ("Lagrange", 1))
vector_V = dolfinx.fem.VectorFunctionSpace(mesh, ("Lagrange", 1))
tensor_V = dolfinx.fem.TensorFunctionSpace(mesh, ("Lagrange", 1))
scalar_V = dolfinx.fem.functionspace(mesh, ("Lagrange", 1))
vector_V = dolfinx.fem.functionspace(mesh, ("Lagrange", 1, (mesh.geometry.dim, )))
tensor_V = dolfinx.fem.functionspace(mesh, ("Lagrange", 1, (mesh.geometry.dim, mesh.geometry.dim)))

u = ufl.TrialFunction(scalar_V)
v = ufl.TestFunction(scalar_V)
Expand Down Expand Up @@ -139,7 +139,7 @@ def test_name_scalar_failure_coefficient_dolfinx() -> None:
mpi4py = pytest.importorskip("mpi4py")
pytest.importorskip("mpi4py.MPI")
mesh = dolfinx.mesh.create_unit_square(mpi4py.MPI.COMM_WORLD, 2, 2)
V = dolfinx.fem.FunctionSpace(mesh, ("Lagrange", 1))
V = dolfinx.fem.functionspace(mesh, ("Lagrange", 1))

u = ufl.TrialFunction(V)
v = ufl.TestFunction(V)
Expand Down

0 comments on commit 309dde9

Please sign in to comment.