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

Open-Sn / opensn / 20943481625

13 Jan 2026 01:13AM UTC coverage: 74.47% (+0.03%) from 74.437%
20943481625

push

github

web-flow
Merge pull request #892 from andrsd/issue/90-quad-order

Quadrature order, number of polar, number of azimuthal is `unsigned int`

15 of 17 new or added lines in 5 files covered. (88.24%)

248 existing lines in 10 files now uncovered.

18733 of 25155 relevant lines covered (74.47%)

66799244.41 hits per line

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

85.71
/framework/math/functions/function.h
1
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
2
// SPDX-License-Identifier: MIT
3

4
#pragma once
5

6
#include "framework/data_types/vector3.h"
7
#include <functional>
8
#include <vector>
9

10
namespace opensn
11
{
12

13
using ScalarSpatialFunction = std::function<double(const Vector3&)>;
14
using ScalarSpatialMaterialFunction = std::function<double(int, const Vector3&)>;
15
using ScalarMaterialFunction = std::function<double(double, unsigned int)>;
16

17
/// Base class for evaluating spatial material functions given a coordinate.
18
class VectorSpatialFunction : public std::function<std::vector<double>(const Vector3&, std::size_t)>
12✔
19
{
20
public:
21
  VectorSpatialFunction() = default;
22
  VectorSpatialFunction(const std::function<std::vector<double>(const Vector3&, std::size_t)>& src)
16✔
23
    : std::function<std::vector<double>(const Vector3&, std::size_t)>(src)
16✔
24
  {
25
  }
16✔
26
};
27

28
/// Base class for evaluating incoming angular fluxes given group and direction indices.
UNCOV
29
class AngularFluxFunction : public std::function<double(int, int)>
×
30
{
31
public:
32
  AngularFluxFunction() = default;
33
  AngularFluxFunction(const std::function<double(int, int)>& src)
4✔
34
    : std::function<double(int, int)>(src)
4✔
35
  {
36
  }
37
};
38

39
} // 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