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

openmc-dev / openmc / 19851502091

02 Dec 2025 08:05AM UTC coverage: 82.016% (+0.1%) from 81.872%
19851502091

Pull #3413

github

web-flow
Merge d7a168452 into ef22558f4
Pull Request #3413: More interpolation types in Tabular.

16946 of 23531 branches covered (72.02%)

Branch coverage included in aggregate %.

68 of 107 new or added lines in 3 files covered. (63.55%)

1391 existing lines in 31 files now uncovered.

54939 of 64116 relevant lines covered (85.69%)

42115001.1 hits per line

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

93.33
/src/message_passing.cpp
1
#include "openmc/message_passing.h"
2

3
namespace openmc {
4
namespace mpi {
5

6
int rank {0};
7
int n_procs {1};
8
bool master {true};
9

10
#ifdef OPENMC_MPI
11
MPI_Comm intracomm {MPI_COMM_NULL};
12
MPI_Datatype source_site {MPI_DATATYPE_NULL};
13
MPI_Datatype collision_track_site {MPI_DATATYPE_NULL};
14
#endif
15

16
extern "C" bool openmc_master()
10,230✔
17
{
18
  return mpi::master;
10,230✔
19
}
20

21
vector<int64_t> calculate_parallel_index_vector(int64_t size)
1,162✔
22
{
23
  vector<int64_t> result;
1,162✔
24
  result.resize(n_procs + 1);
1,162✔
25
  result[0] = 0;
1,162✔
26

27
#ifdef OPENMC_MPI
28

29
  // Populate the result with cumulative sum of the number of
30
  // surface source banks per process
31
  int64_t scan_total;
32
  MPI_Scan(&size, &scan_total, 1, MPI_INT64_T, MPI_SUM, intracomm);
552✔
33
  MPI_Allgather(
1,104✔
34
    &scan_total, 1, MPI_INT64_T, result.data() + 1, 1, MPI_INT64_T, intracomm);
552✔
35
#else
36
  result[1] = size;
610✔
37
#endif
38

39
  return result;
1,714✔
UNCOV
40
}
×
41

42
} // namespace mpi
43

44
} // namespace openmc
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