// ------------------------------------------------------------------------ // // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2022 - 2025 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. // // ------------------------------------------------------------------------ #ifndef dealii_matrix_free_evaluation_template_factory_templates_h #define dealii_matrix_free_evaluation_template_factory_templates_h #include #include #include #include #include DEAL_II_NAMESPACE_OPEN namespace internal { template void FEFaceEvaluationFactory::evaluate( const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData &fe_eval) { instantiation_helper_run<1, FEFaceEvaluationImplEvaluateSelector>( fe_eval.get_shape_info().data[0].fe_degree, fe_eval.get_shape_info().data[0].n_q_points_1d, n_components, evaluation_flag, values_dofs, fe_eval); } template void FEFaceEvaluationFactory::project_to_face( const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *values_dofs, FEEvaluationData &fe_eval) { instantiation_helper_degree_run< 1, FEFaceEvaluationImplProjectToFaceSelector>( fe_eval.get_shape_info().data[0].fe_degree, n_components, evaluation_flag, values_dofs, fe_eval); } template void FEFaceEvaluationFactory::evaluate_in_face( const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, FEEvaluationData &fe_eval) { instantiation_helper_run< 1, FEFaceEvaluationImplEvaluateInFaceSelector>( fe_eval.get_shape_info().data[0].fe_degree, fe_eval.get_shape_info().data[0].n_q_points_1d, n_components, evaluation_flag, fe_eval); } template void FEFaceEvaluationFactory::integrate( const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData &fe_eval, const bool sum_into_values) { instantiation_helper_run< 1, FEFaceEvaluationImplIntegrateSelector>( fe_eval.get_shape_info().data[0].fe_degree, fe_eval.get_shape_info().data[0].n_q_points_1d, n_components, integration_flag, values_dofs, fe_eval, sum_into_values); } template void FEFaceEvaluationFactory::collect_from_face( const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *values_dofs, FEEvaluationData &fe_eval, const bool sum_into_values) { instantiation_helper_degree_run< 1, FEFaceEvaluationImplCollectFromFaceSelector>( fe_eval.get_shape_info().data[0].fe_degree, n_components, integration_flag, values_dofs, fe_eval, sum_into_values); } template void FEFaceEvaluationFactory::integrate_in_face( const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, FEEvaluationData &fe_eval) { instantiation_helper_run< 1, FEFaceEvaluationImplIntegrateInFaceSelector>( fe_eval.get_shape_info().data[0].fe_degree, fe_eval.get_shape_info().data[0].n_q_points_1d, n_components, integration_flag, fe_eval); } template void FEFaceEvaluationGatherFactory::evaluate( const unsigned int n_components, const EvaluationFlags::EvaluationFlags evaluation_flag, const Number *src_ptr, const std::vector> *sm_ptr, FEEvaluationData &fe_eval) { instantiation_helper_run< 1, FEFaceEvaluationImplGatherEvaluateSelector>( fe_eval.get_shape_info().data[0].fe_degree, fe_eval.get_shape_info().data[0].n_q_points_1d, n_components, evaluation_flag, src_ptr, sm_ptr, fe_eval); } template void FEFaceEvaluationGatherFactory::integrate( const unsigned int n_components, const EvaluationFlags::EvaluationFlags integration_flag, Number *dst_ptr, const std::vector> *sm_ptr, FEEvaluationData &fe_eval) { instantiation_helper_run< 1, FEFaceEvaluationImplIntegrateScatterSelector>( fe_eval.get_shape_info().data[0].fe_degree, fe_eval.get_shape_info().data[0].n_q_points_1d, n_components, integration_flag, dst_ptr, sm_ptr, fe_eval); } // It is important that this file sits in the same compilation unit as the // evaluate() and integrate() calls of this class, to ensure that all // options choose the same code path when compiling FEFaceEvaluationFactory // outside of deal.II. template bool FEFaceEvaluationFactory::fast_evaluation_supported( const unsigned int given_degree, const unsigned int n_q_points_1d) { return instantiation_helper_run<1, FastEvaluationSupported>(given_degree, n_q_points_1d); } } // end of namespace internal DEAL_II_NAMESPACE_CLOSE #endif