Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/cpp_unit_tests/test_mcpl_stat_sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ TEST_CASE("MCPL stat:sum field")
{
std::string filename = "test_empty.mcpl";

// Create empty particle bank
// Create empty particle bank. bank_index holds n_procs + 1 cumulative
// offsets, so a single rank with no particles is {0, 0}.
std::vector<openmc::SourceSite> source_bank;
std::vector<int64_t> bank_index = {0};
std::vector<int64_t> bank_index = {0, 0};

// This should still create a valid MCPL file with stat:sum = 0
openmc::write_mcpl_source_point(filename.c_str(), source_bank, bank_index);
Expand Down
Loading