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

Open-Sn / opensn / 18300593117

06 Oct 2025 10:47PM UTC coverage: 74.862% (-0.2%) from 75.031%
18300593117

push

github

web-flow
Merge pull request #759 from wdhawkins/performance

Sweep performance optimizations

294 of 302 new or added lines in 15 files covered. (97.35%)

334 existing lines in 80 files now uncovered.

17788 of 23761 relevant lines covered (74.86%)

61852783.95 hits per line

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

62.5
/framework/math/spatial_discretization/finite_element/finite_element_data.cc
1
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
2
// SPDX-License-Identifier: MIT
3

4
#include "framework/math/spatial_discretization/finite_element/finite_element_data.h"
5
#include <cassert>
6

7
namespace opensn
8
{
9

10
const std::vector<unsigned int>&
11
VolumetricFiniteElementData::GetQuadraturePointIndices() const
528,154,780✔
12
{
13
  return quadrature_point_indices_;
528,154,780✔
14
}
15

16
Vector3
17
VolumetricFiniteElementData::QPointXYZ(size_t qp) const
2,147,483,647✔
18
{
19
  assert(qp < qpoints_xyz_.size());
2,147,483,647✔
20
  return qpoints_xyz_[qp];
2,147,483,647✔
21
}
22

23
double
24
VolumetricFiniteElementData::ShapeValue(size_t i, size_t qp) const
2,147,483,647✔
25
{
26
  assert(i < shape_value_.size() and qp < shape_value_[i].size());
2,147,483,647✔
27
  return shape_value_[i][qp];
2,147,483,647✔
28
}
29

30
Vector3
31
VolumetricFiniteElementData::ShapeGrad(size_t i, size_t qp) const
2,147,483,647✔
32
{
33
  assert(i < shape_grad_.size() and qp < shape_grad_[i].size());
2,147,483,647✔
34
  return shape_grad_[i][qp];
2,147,483,647✔
35
}
36

37
const std::vector<Vector3>&
38
VolumetricFiniteElementData::GetQPointsXYZ() const
×
39
{
40
  return qpoints_xyz_;
×
41
}
42

43
const std::vector<std::vector<double>>&
44
VolumetricFiniteElementData::GetShapeValues() const
141,912✔
45
{
46
  return shape_value_;
141,912✔
47
}
48

49
const std::vector<std::vector<Vector3>>&
50
VolumetricFiniteElementData::GetShapeGradValues() const
141,912✔
51
{
52
  return shape_grad_;
141,912✔
53
}
54

55
const std::vector<double>&
56
VolumetricFiniteElementData::GetJxWValues() const
141,912✔
57
{
58
  return JxW_;
141,912✔
59
}
60

61
double
62
VolumetricFiniteElementData::JxW(size_t qp) const
2,147,483,647✔
63
{
64
  assert(qp < JxW_.size());
2,147,483,647✔
65
  return JxW_[qp];
2,147,483,647✔
66
}
67

68
int
69
VolumetricFiniteElementData::FaceDofMapping(size_t face, size_t face_node_index) const
×
70
{
NEW
71
  assert(face < face_dof_mappings_.size() and face_node_index < face_dof_mappings_[face].size());
×
NEW
72
  return face_dof_mappings_[face][face_node_index];
×
73
}
74

75
size_t
76
VolumetricFiniteElementData::GetNumNodes() const
×
77
{
78
  return num_nodes_;
×
79
}
80

81
Vector3
NEW
82
SurfaceFiniteElementData::Normal(size_t qp) const
×
83
{
NEW
84
  assert(qp < normals_.size());
×
NEW
85
  return normals_[qp];
×
86
}
87

88
const std::vector<Vector3>&
89
SurfaceFiniteElementData::GetNormals() const
×
90
{
91
  return normals_;
×
92
}
93

94
} // namespace opensn
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