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

Open-Sn / opensn / 21892714514

10 Feb 2026 11:58PM UTC coverage: 74.806% (-0.02%) from 74.828%
21892714514

push

github

web-flow
Merge pull request #929 from wdhawkins/iteration_log

Fixing iteration status messages

4 of 4 new or added lines in 1 file covered. (100.0%)

211 existing lines in 16 files now uncovered.

19638 of 26252 relevant lines covered (74.81%)

69654996.54 hits per line

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

81.82
/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.
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
/// Base class for evaluating group-wise strengths given group index and time.
UNCOV
40
class GroupTimeFunction : public std::function<double(unsigned int, double)>
×
41
{
42
public:
43
  GroupTimeFunction() = default;
44
  GroupTimeFunction(const std::function<double(unsigned int, double)>& src)
4✔
45
    : std::function<double(unsigned int, double)>(src)
4✔
46
  {
47
  }
4✔
48
};
49

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