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

FEniCS / ffcx / 19801120260

30 Nov 2025 03:36PM UTC coverage: 73.753% (-4.2%) from 77.933%
19801120260

Pull #803

github

schnellerhase
passing compiles?
Pull Request #803: Add `C++` backend

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

3740 of 5071 relevant lines covered (73.75%)

0.74 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
# Code generation format strings for UFC (Unified Form-assembly Code)
2
# This code is released into the public domain.
3
#
4
# The FEniCS Project (http://www.fenicsproject.org/) 2018
5
"""Templates for C++ integral output."""
6

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

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

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

24
// Data
25
std::vector<bool> enabled_coefficients;
26
bool needs_facet_permutations;
27

28
}};
29
"""
30

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

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

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

51
// End of code for integral {factory_name}
52
"""
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