Skip to content

Commit 9ef99d3

Browse files
committed
error when point detectors are used with ncrystal materials
1 parent 641fbf7 commit 9ef99d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/physics.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ void sample_neutron_reaction(Particle& p)
157157
// exiting neutron
158158
const auto& ncrystal_mat = model::materials[p.material()]->ncrystal_mat();
159159
if (ncrystal_mat && p.E() < NCRYSTAL_MAX_ENERGY) {
160+
if (!model::active_point_tallies.empty())
161+
fatal_error("Next-Event estimator does not support ncrystal materials");
160162
ncrystal_mat.scatter(p);
161163
} else {
162164
scatter(p, i_nuclide);

0 commit comments

Comments
 (0)