From f0a2a24e58f53024959f7ec8be4947921215a7e7 Mon Sep 17 00:00:00 2001 From: Andreas Ritthaler Date: Wed, 18 Sep 2024 09:01:08 +0200 Subject: [PATCH] fix failing test --- tests/matrix_free/matrix_vector_normal_hessians.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/matrix_free/matrix_vector_normal_hessians.cc b/tests/matrix_free/matrix_vector_normal_hessians.cc index adc4d4db6c..f17a48f89b 100644 --- a/tests/matrix_free/matrix_vector_normal_hessians.cc +++ b/tests/matrix_free/matrix_vector_normal_hessians.cc @@ -76,7 +76,12 @@ test_hessians(const unsigned int degree, AffineConstraints constraints; DoFTools::make_hanging_node_constraints(dof_handler, constraints); VectorTools::interpolate_boundary_values( - mapping, dof_handler, 0, Functions::ZeroFunction(), constraints); + mapping, + dof_handler, + 0, + Functions::ZeroFunction( + dof_handler.get_fe_collection().n_components()), + constraints); constraints.close(); // FEFaceEvaluation -- 2.39.5