• 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

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

4
#include "framework/runtime.h"
5
#include "framework/math/math.h"
6
#include "framework/object_factory.h"
7
#include "framework/logging/log.h"
8
#include "framework/utils/timer.h"
9
#include "config.h"
10
#include "caliper/cali.h"
11
#include "hdf5.h"
12
#include <iostream>
13

14
namespace opensn
15
{
16

17
// Global variables
18
Logger& log = Logger::GetInstance();
19
mpi::Communicator mpi_comm;
20
bool use_caliper = false;
21
std::string cali_config("runtime-report(calc.inclusive=true),max_column_width=80");
22
cali::ConfigManager cali_mgr;
23
Timer program_timer;
24
bool suppress_color = false;
25
std::filesystem::path input_path;
26

27
std::vector<std::shared_ptr<FieldFunctionInterpolation>> field_func_interpolation_stack;
28
std::vector<std::shared_ptr<MultiGroupXS>> multigroup_xs_stack;
29
std::vector<std::shared_ptr<FieldFunction>> field_function_stack;
30
std::vector<std::shared_ptr<SpatialDiscretization>> sdm_stack;
31

32
int
33
Initialize()
479✔
34
{
35
  if (use_caliper)
479✔
36
  {
UNCOV
37
    cali_mgr.add(cali_config.c_str());
×
UNCOV
38
    cali_set_global_string_byname("opensn.version", GetVersionStr().c_str());
×
UNCOV
39
    cali_set_global_string_byname("opensn.input", input_path.c_str());
×
UNCOV
40
    cali_mgr.start();
×
41
  }
42

43
  CALI_MARK_BEGIN(opensn::program.c_str());
479✔
44

45
  // Disable internal HDF error reporting
46
  H5Eset_auto2(H5E_DEFAULT, NULL, NULL);
479✔
47

48
  return 0;
479✔
49
}
50

51
void
52
Finalize()
479✔
53
{
54
  field_func_interpolation_stack.clear();
479✔
55
  multigroup_xs_stack.clear();
479✔
56
  field_function_stack.clear();
479✔
57
  sdm_stack.clear();
479✔
58

59
  // Flush standard streams
60
  std::cout.flush();
479✔
61
  std::cerr.flush();
479✔
62
  std::clog.flush();
479✔
63

64
  opensn::mpi_comm.barrier();
479✔
65

66
  CALI_MARK_END(opensn::program.c_str());
479✔
67
}
479✔
68

69
std::string
70
GetVersionStr()
126✔
71
{
72
  return PROJECT_VERSION;
126✔
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