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

Open-Sn / opensn / 22654533986

04 Mar 2026 12:48AM UTC coverage: 74.268% (+0.08%) from 74.192%
22654533986

push

github

web-flow
Merge pull request #960 from andrsd/fv-removal

Removing finite-volume spatial discretization

0 of 2 new or added lines in 1 file covered. (0.0%)

183 existing lines in 9 files now uncovered.

19993 of 26920 relevant lines covered (74.27%)

67230185.92 hits per line

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

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

4
#include "modules/problem.h"
5
#include "framework/runtime.h"
6
#include "framework/logging/log.h"
7
#include "framework/object_factory.h"
8

9
namespace opensn
10
{
11

12
InputParameters
13
Problem::GetInputParameters()
579✔
14
{
15
  InputParameters params;
579✔
16

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

22
  return params;
579✔
23
}
×
24

25
Problem::Problem(std::string name) : name_(std::move(name))
×
26
{
27
}
×
28

29
Problem::Problem(const InputParameters& params) : name_(params.GetParamValue<std::string>("name"))
579✔
30
{
31
}
579✔
32

33
std::string
34
Problem::GetName() const
239✔
35
{
36
  return name_;
239✔
37
}
38

39
std::vector<std::shared_ptr<FieldFunctionGridBased>>&
UNCOV
40
Problem::GetFieldFunctions()
×
41
{
UNCOV
42
  return field_functions_;
×
43
}
44

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

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

57
ParameterBlock
58
Problem::GetInfo(const ParameterBlock& params) const
×
59
{
60
  return ParameterBlock{};
×
61
}
62

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

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

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