• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FEniCS / ffcx / 20003395181

07 Dec 2025 11:15AM UTC coverage: 78.511% (-5.9%) from 84.457%
20003395181

Pull #803

github

schnellerhase
Reactivate check
Pull Request #803: Add `C++` backend

0 of 364 new or added lines in 10 files covered. (0.0%)

4059 of 5170 relevant lines covered (78.51%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/ffcx/codegeneration/cpp/integrals_template.py
1
# Copyright (C) 2025 Chris Richardson and Paul T. Kühner
2
#
3
# This file is part of FFCx.(https://www.fenicsproject.org)
4
#
5
# SPDX-License-Identifier:    LGPL-3.0-or-later
6
"""Templates for C++ integral output."""
7

NEW
8
declaration = """
×
9
class {factory_name}
10
{{
11
public:
12

13
// Constructor
14
{factory_name}();
15

16
// Kernel
17
template <typename T, typename U>
18
void tabulate_tensor(T* A,
19
                     const T* RESTRICT w,
20
                     const T* RESTRICT c,
21
                     const U* RESTRICT coordinate_dofs,
22
                     const std::int32_t* RESTRICT entity_local_index,
23
                     const std::uint8_t* RESTRICT quadrature_permutation);
24

25
// Data
26
std::vector<bool> enabled_coefficients; // TODO: std::vector<char>?
27
bool needs_facet_permutations;
28

29
}};
30
"""
31

NEW
32
factory = """
×
33
// Code for integral {factory_name}
34

35
template <typename T, typename U>
36
void {factory_name}::tabulate_tensor(T* RESTRICT A,
37
                     const T* RESTRICT w,
38
                     const T* RESTRICT c,
39
                     const U* RESTRICT coordinate_dofs,
40
                     const std::int32_t* RESTRICT entity_local_index,
41
                     const std::uint8_t* RESTRICT quadrature_permutation)
42
{{
43
{tabulate_tensor}
44
}}
45

46
{factory_name}::{factory_name}()
47
{{
48
  enabled_coefficients = {enabled_coefficients};
49
  needs_facet_permutations = {needs_facet_permutations};
50
}}
51

52
// End of code for integral {factory_name}
53
"""
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc