We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f629ea0 + c6d2376 commit f69149bCopy full SHA for f69149b
src/tallies/tally.cpp
@@ -507,8 +507,11 @@ void Tally::set_scores(const vector<std::string>& scores)
507
if (type_ == TallyType::SURFACE || type_ == TallyType::MESH_SURFACE) {
508
if (scores_.size() != 1)
509
fatal_error("Cannot tally other scores in the same tally as surface "
510
- "currents");
+ "currents.");
511
}
512
+ if ((surface_present || meshsurface_present) && scores_[0] != SCORE_CURRENT)
513
+ fatal_error("Cannot tally score other than 'current' when using a surface "
514
+ "or mesh-surface filter.");
515
516
517
void
0 commit comments