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

Open-Sn / opensn / 20201962283

12 Dec 2025 06:55PM UTC coverage: 74.333%. Remained the same
20201962283

push

github

web-flow
Merge pull request #859 from wdhawkins/td_source_driver

Adding time-dependent solver and time-dependent sources

367 of 398 new or added lines in 23 files covered. (92.21%)

359 existing lines in 17 files now uncovered.

18610 of 25036 relevant lines covered (74.33%)

68925445.1 hits per line

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

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

4
#include "modules/solver.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
Solver::GetInputParameters()
352✔
14
{
15
  InputParameters params;
352✔
16

17
  params.AddRequiredParameter<std::string>(
704✔
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;
352✔
23
}
×
24

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

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

33
std::string
34
Solver::GetName() const
×
35
{
36
  return name_;
×
37
}
38

39
void
40
Solver::Initialize()
×
41
{
42
  log.Log() << "\"Initialize()\" method not defined for " << GetName();
×
43
}
×
44

45
void
46
Solver::Execute()
×
47
{
48
  log.Log() << "\"Execute()\" method not defined for " << GetName();
×
49
}
×
50

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

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

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

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