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

Open-Sn / opensn / 25359736025

04 May 2026 04:34PM UTC coverage: 75.416% (-0.001%) from 75.417%
25359736025

push

github

web-flow
Merge pull request #1038 from quocdang1998/sycl-mod

Extend SYCL implementation for caribou and OpenSn

21817 of 28929 relevant lines covered (75.42%)

65645385.67 hits per line

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

33.33
/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/logging/log.h"
6
#include "framework/object_factory.h"
7

8
namespace opensn
9
{
10

11
InputParameters
12
Problem::GetInputParameters()
676✔
13
{
14
  InputParameters params;
676✔
15

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

21
  return params;
676✔
22
}
×
23

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

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

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

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

44
ParameterBlock
45
Problem::GetInfo(const ParameterBlock& params) const
×
46
{
47
  return ParameterBlock{};
×
48
}
49

50
ParameterBlock
51
Problem::GetInfoWithPreCheck(const ParameterBlock& params) const
×
52
{
53
  if (not params.Has("name"))
×
54
  {
55
    log.LogAllWarning() << "Problem::GetInfo called without "
×
56
                           "\"name\" in the parameter list";
×
57
    return ParameterBlock{};
×
58
  }
59
  return GetInfo(params);
×
60
}
61

62
void
63
Problem::SetProperties(const ParameterBlock& params)
×
64
{
65
}
×
66

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