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

openmc-dev / openmc / 12776996362

14 Jan 2025 09:49PM UTC coverage: 84.938% (+0.2%) from 84.729%
12776996362

Pull #3133

github

web-flow
Merge 0495246d9 into 549cc0973
Pull Request #3133: Kinetics parameters using Iterated Fission Probability

318 of 330 new or added lines in 10 files covered. (96.36%)

1658 existing lines in 66 files now uncovered.

50402 of 59340 relevant lines covered (84.94%)

33987813.96 hits per line

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

0.0
/include/openmc/output.h
1
//! \file output.h
2
//! Functions for ASCII output.
3

4
#ifndef OPENMC_OUTPUT_H
5
#define OPENMC_OUTPUT_H
6

7
#include <string>
8

9
#include "openmc/particle.h"
10

11
namespace openmc {
12

13
//! \brief Display the main title banner as well as information about the
14
//! program developers, version, and date/time which the problem was run.
15
void title();
16

17
//! Display a header block.
18
//
19
//! \param msg The main text of the header
20
//! \param level The lowest verbosity level at which this header is printed
21
void header(const char* msg, int level);
22

23
//! Retrieve a time stamp.
24
//
25
//! \return current time stamp (format: "yyyy-mm-dd hh:mm:ss")
26
std::string time_stamp();
27

28
//! Display the attributes of a particle.
29
void print_particle(Particle& p);
30

31
//! Display plot information.
32
void print_plot();
33

34
//! Display information regarding cell overlap checking.
35
void print_overlap_check();
36

37
//! Display information about command line usage of OpenMC
38
void print_usage();
39

40
//! Display current version and copright/license information
41
void print_version();
42

43
//! Display compile flags employed, etc
44
void print_build_info();
45

46
//! Display header listing what physical values will displayed
47
void print_columns();
48

49
//! Display information about a generation of neutrons
50
void print_generation();
51

52
//! Display time elapsed for various stages of a run
53
void print_runtime();
54

55
//! Display results for global tallies including k-effective estimators
56
void print_results();
57

58
void write_tallies();
59

60
void show_time(const char* label, double secs, int indent_level = 0);
61

62
} // namespace openmc
63
#endif // OPENMC_OUTPUT_H
64

65
//////////////////////////////////////
66
// Custom formatters
67
//////////////////////////////////////
68
namespace fmt {
69

70
template<typename T>
71
struct formatter<std::array<T, 2>> {
72
  template<typename ParseContext>
73
  constexpr auto parse(ParseContext& ctx)
×
74
  {
75
    return ctx.begin();
×
76
  }
77

78
  template<typename FormatContext>
79
#if FMT_VERSION >= 110000 // Version 11.0.0 and above
UNCOV
80
  auto format(const std::array<T, 2>& arr, FormatContext& ctx) const {
×
81
#else // For versions below 11.0.0
82
  auto format(const std::array<T, 2>& arr, FormatContext& ctx)
83
  {
84
#endif
UNCOV
85
    return format_to(ctx.out(), "({}, {})", arr[0], arr[1]);
×
86
}
87
}; // namespace fmt
88

89
} // namespace fmt
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

© 2025 Coveralls, Inc