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

openmc-dev / openmc / 20278515727

16 Dec 2025 06:26PM UTC coverage: 81.822% (-0.1%) from 81.92%
20278515727

Pull #3493

github

web-flow
Merge 7f36869a3 into bbfa18d72
Pull Request #3493: Implement vector fitting to replace external `vectfit` package

17013 of 23575 branches covered (72.17%)

Branch coverage included in aggregate %.

188 of 207 new or added lines in 3 files covered. (90.82%)

3101 existing lines in 56 files now uncovered.

54973 of 64404 relevant lines covered (85.36%)

41385524.25 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()
9,300✔
17
{
18
  return mpi::master;
9,300✔
19
}
20

21
vector<int64_t> calculate_parallel_index_vector(int64_t size)
1,054✔
22
{
23
  vector<int64_t> result;
1,054✔
24
  result.resize(n_procs + 1);
1,054✔
25
  result[0] = 0;
1,054✔
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);
444✔
33
  MPI_Allgather(
888✔
34
    &scan_total, 1, MPI_INT64_T, result.data() + 1, 1, MPI_INT64_T, intracomm);
444✔
35
#else
36
  result[1] = size;
610✔
37
#endif
38

39
  return result;
1,498✔
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

© 2025 Coveralls, Inc