Skip to content

Commit

Permalink
Add missing datatype in test_fem_pipeline (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg authored Dec 13, 2024
1 parent f9a037a commit 9ee46f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/test/unit/fem/test_fem_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def test_petsc_curl_curl_eigenvalue(family, order):
[np.array([0.0, 0.0]), np.array([np.pi, np.pi])],
[24, 24],
CellType.triangle,
dtype=default_real_type,
)

e = element(family, basix.CellType.triangle, order, dtype=default_real_type)
Expand All @@ -253,7 +254,7 @@ def test_petsc_curl_curl_eigenvalue(family, order):
boundary_facets = exterior_facet_indices(mesh.topology)
boundary_dofs = locate_dofs_topological(V, mesh.topology.dim - 1, boundary_facets)

zero_u = Function(V)
zero_u = Function(V, dtype=dolfinx.default_scalar_type)
zero_u.x.array[:] = 0
bcs = [dirichletbc(zero_u, boundary_dofs)]

Expand Down

0 comments on commit 9ee46f0

Please sign in to comment.