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

openmc-dev / openmc / 4812163747

pending completion
4812163747

push

github

GitHub
Merge pull request #2494 from aprilnovak/delete-tally

1 of 2 new or added lines in 1 file covered. (50.0%)

124 existing lines in 19 files now uncovered.

42440 of 50752 relevant lines covered (83.62%)

78971666.53 hits per line

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

87.5
/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
#endif
14

15
extern "C" bool openmc_master()
52,080✔
16
{
17
  return mpi::master;
52,080✔
18
}
19

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

26
#ifdef OPENMC_MPI
27

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

38
  return result;
29✔
UNCOV
39
}
×
40

41
} // namespace mpi
42

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