Skip to content
6 changes: 6 additions & 0 deletions src/random_ray/flat_source_domain.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include "openmc/random_ray/flat_source_domain.h"

#include "openmc/cell.h"
Expand Down Expand Up @@ -1092,6 +1092,12 @@
// point_source_map to determine if there are any point source terms
// that should be applied.
SourceRegionKey key {sr, mesh_bin};
auto it = point_source_map_.find(key);
if (it != point_source_map_.end()) {
fatal_error("Multiple point sources detected in the same subdivided "
"source region. This is not currently supported in the random ray "
"solver.");
}
point_source_map_[key] = es;
} else {
// If we are not using mesh subdivision, we can apply the external
Expand Down
Loading