From 9ee46f0925da2930fa76ca046d047a55555dfbff Mon Sep 17 00:00:00 2001 From: Henrik Finsberg Date: Fri, 13 Dec 2024 19:47:25 +0100 Subject: [PATCH] Add missing datatype in test_fem_pipeline (#3561) --- python/test/unit/fem/test_fem_pipeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/test/unit/fem/test_fem_pipeline.py b/python/test/unit/fem/test_fem_pipeline.py index d0501b2554e..803ccc45b80 100644 --- a/python/test/unit/fem/test_fem_pipeline.py +++ b/python/test/unit/fem/test_fem_pipeline.py @@ -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) @@ -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)]