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

Open-Sn / opensn / 24065262673

06 Apr 2026 04:56PM UTC coverage: 75.039%. Remained the same
24065262673

push

github

web-flow
Merge pull request #1014 from wdhawkins/ff_fixes

Numerous bug fixes for field function and interpolation routines

48 of 71 new or added lines in 7 files covered. (67.61%)

152 existing lines in 9 files now uncovered.

20984 of 27964 relevant lines covered (75.04%)

66658029.72 hits per line

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

77.78
/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
int
28
Initialize()
662✔
29
{
30
  if (use_caliper)
662✔
31
  {
UNCOV
32
    cali_mgr.add(cali_config.c_str());
×
UNCOV
33
    cali_set_global_string_byname("opensn.version", GetVersionStr().c_str());
×
34
    cali_set_global_string_byname("opensn.input", input_path.c_str());
×
35
    cali_mgr.start();
×
36
  }
37

38
  CALI_MARK_BEGIN(opensn::program.c_str());
662✔
39

40
  // Disable internal HDF error reporting
41
  H5Eset_auto2(H5E_DEFAULT, nullptr, nullptr);
662✔
42

43
  return 0;
662✔
44
}
45

46
void
47
Finalize()
660✔
48
{
49
  // Flush standard streams
50
  std::cout.flush();
660✔
51
  std::cerr.flush();
660✔
52
  std::clog.flush();
660✔
53

54
  opensn::mpi_comm.barrier();
660✔
55

56
  CALI_MARK_END(opensn::program.c_str());
660✔
57
}
660✔
58

59
std::string
60
GetVersionStr()
208✔
61
{
62
  return PROJECT_VERSION;
208✔
63
}
64

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