From: Martin Kronbichler Date: Mon, 19 Aug 2024 19:28:49 +0000 (+0200) Subject: Test case X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c2bb3ee6dd7efaa639703c314e109d538ae61b0;p=dealii.git Test case --- diff --git a/tests/matrix_free/fe_face_evaluation_vector.cc b/tests/matrix_free/fe_face_evaluation_vector.cc new file mode 100644 index 0000000000..bbe14430bb --- /dev/null +++ b/tests/matrix_free/fe_face_evaluation_vector.cc @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------ +// +// SPDX-License-Identifier: LGPL-2.1-or-later +// Copyright (C) 2024 by the deal.II authors +// +// This file is part of the deal.II library. +// +// Part of the source code is dual licensed under Apache-2.0 WITH +// LLVM-exception OR LGPL-2.1-or-later. Detailed license information +// governing the source code and code contributions can be found in +// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. +// +// ------------------------------------------------------------------------ + + + +// Ensure that FEFaceEvaluation can be collected in a vector + +#include + +#include +#include + +#include + +#include + +#include "../tests.h" + + +int +main() +{ + initlog(); + + constexpr int dim = 2; + Triangulation tria; + GridGenerator::hyper_cube(tria); + FE_Q fe(1); + DoFHandler dof_handler(tria); + dof_handler.distribute_dofs(fe); + + MappingQ mapping(1); + + MatrixFree matrix_free; + MatrixFree::AdditionalData mf_data; + mf_data.mapping_update_flags_boundary_faces = update_values; + matrix_free.reinit( + mapping, dof_handler, AffineConstraints(), QGauss<1>(2), mf_data); + FEFaceEvaluation evaluator(matrix_free); + std::vector> evaluators(2, evaluator); + evaluators[0].reinit(0); + evaluators[1].reinit(0); + + deallog << "OK" << std::endl; +} diff --git a/tests/matrix_free/fe_face_evaluation_vector.output b/tests/matrix_free/fe_face_evaluation_vector.output new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/matrix_free/fe_face_evaluation_vector.output @@ -0,0 +1,2 @@ + +DEAL::OK