• 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

35.71
/framework/physics/problem.cc
1
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
2
// SPDX-License-Identifier: MIT
3

4
#include "framework/physics/problem.h"
5
#include "framework/physics/time_steppers/time_stepper.h"
6
#include "framework/runtime.h"
7
#include "framework/logging/log.h"
8
#include "framework/physics/time_steppers/constant_time_stepper.h"
9
#include "framework/object_factory.h"
10

11
namespace opensn
12
{
13

14
InputParameters
15
Problem::GetInputParameters()
260✔
16
{
17
  InputParameters params;
260✔
18

19
  params.AddRequiredParameter<std::string>(
520✔
20
    "name",
21
    "A text name to associate with the solver. This name will be used "
22
    "in status messages and verbose iterative convergence monitors.");
23

24
  return params;
260✔
25
}
×
26

27
Problem::Problem(std::string name) : name_(std::move(name))
×
28
{
29
}
×
30

31
Problem::Problem(const InputParameters& params) : name_(params.GetParamValue<std::string>("name"))
260✔
32
{
33
}
260✔
34

35
std::string
36
Problem::GetName() const
153✔
37
{
38
  return name_;
153✔
39
}
40

41
std::vector<std::shared_ptr<FieldFunctionGridBased>>&
42
Problem::GetFieldFunctions()
20,822✔
43
{
44
  return field_functions_;
20,822✔
45
}
46

47
const std::vector<std::shared_ptr<FieldFunctionGridBased>>&
UNCOV
48
Problem::GetFieldFunctions() const
×
49
{
UNCOV
50
  return field_functions_;
×
51
}
52

53
void
UNCOV
54
Problem::Initialize()
×
55
{
UNCOV
56
  log.Log() << "\"Initialize()\" method not defined for " << GetName();
×
57
}
×
58

59
ParameterBlock
UNCOV
60
Problem::GetInfo(const ParameterBlock& params) const
×
61
{
UNCOV
62
  return ParameterBlock{};
×
63
}
64

65
ParameterBlock
UNCOV
66
Problem::GetInfoWithPreCheck(const ParameterBlock& params) const
×
67
{
UNCOV
68
  if (not params.Has("name"))
×
69
  {
UNCOV
70
    log.LogAllWarning() << "Problem::GetInfo called without "
×
71
                           "\"name\" in the parameter list";
×
72
    return ParameterBlock{};
×
73
  }
UNCOV
74
  return GetInfo(params);
×
75
}
76

77
void
UNCOV
78
Problem::SetProperties(const ParameterBlock& params)
×
79
{
UNCOV
80
}
×
81

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