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

Open-Sn / opensn / 16766938693

05 Aug 2025 03:26PM UTC coverage: 73.386% (+0.1%) from 73.282%
16766938693

push

github

web-flow
Merge pull request #693 from andrsd/move-bnds

Moving sweep boundaries into `DiscreteOrdinatesProblem`

247 of 311 new or added lines in 19 files covered. (79.42%)

625 existing lines in 49 files now uncovered.

18320 of 24964 relevant lines covered (73.39%)

43106214.05 hits per line

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

66.67
/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

9
namespace opensn
10
{
11

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

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

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