Skip to content

Commit 9ee46f0

Browse files
authored
Add missing datatype in test_fem_pipeline (#3561)
1 parent f9a037a commit 9ee46f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/test/unit/fem/test_fem_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def test_petsc_curl_curl_eigenvalue(family, order):
237237
[np.array([0.0, 0.0]), np.array([np.pi, np.pi])],
238238
[24, 24],
239239
CellType.triangle,
240+
dtype=default_real_type,
240241
)
241242

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

256-
zero_u = Function(V)
257+
zero_u = Function(V, dtype=dolfinx.default_scalar_type)
257258
zero_u.x.array[:] = 0
258259
bcs = [dirichletbc(zero_u, boundary_dofs)]
259260

0 commit comments

Comments
 (0)