mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Disallow non-current scores with a surface filter
This commit is contained in:
parent
ef128f5609
commit
c6d2376bb0
1 changed files with 4 additions and 1 deletions
|
|
@ -507,8 +507,11 @@ void Tally::set_scores(const vector<std::string>& scores)
|
|||
if (type_ == TallyType::SURFACE || type_ == TallyType::MESH_SURFACE) {
|
||||
if (scores_.size() != 1)
|
||||
fatal_error("Cannot tally other scores in the same tally as surface "
|
||||
"currents");
|
||||
"currents.");
|
||||
}
|
||||
if ((surface_present || meshsurface_present) && scores_[0] != SCORE_CURRENT)
|
||||
fatal_error("Cannot tally score other than 'current' when using a surface "
|
||||
"or mesh-surface filter.");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue