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

Open-Sn / opensn / 16821314466

07 Aug 2025 04:57PM UTC coverage: 74.527% (+1.0%) from 73.488%
16821314466

push

github

web-flow
Merge pull request #708 from wdhawkins/curvilinear_warning

Adding experimental warning to curvilinear solver

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

250 existing lines in 17 files now uncovered.

17543 of 23539 relevant lines covered (74.53%)

44793362.81 hits per line

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

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

4
#include "framework/physics/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()
260✔
14
{
15
  InputParameters params;
260✔
16

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

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

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

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

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

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

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

57
void
58
Solver::Advance()
×
59
{
60
  log.Log() << "\"Advance()\" method not defined for " << GetName();
×
61
}
×
62

63
ParameterBlock
64
Solver::GetInfo(const ParameterBlock& params) const
×
65
{
UNCOV
66
  return ParameterBlock{};
×
67
}
68

69
ParameterBlock
UNCOV
70
Solver::GetInfoWithPreCheck(const ParameterBlock& params) const
×
71
{
UNCOV
72
  if (not params.Has("name"))
×
73
  {
UNCOV
74
    log.LogAllWarning() << "Solver::GetInfo called without "
×
UNCOV
75
                           "\"name\" in the parameter list";
×
UNCOV
76
    return ParameterBlock{};
×
77
  }
UNCOV
78
  return GetInfo(params);
×
79
}
80

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