mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
commit
537fe98258
1 changed files with 4 additions and 2 deletions
|
|
@ -240,10 +240,12 @@ score_str_to_int(std::string score_str)
|
|||
try {
|
||||
MT = std::stoi(score_str);
|
||||
} catch (const std::invalid_argument& ex) {
|
||||
throw std::invalid_argument("Invalid tally score \"" + score_str + "\"");
|
||||
throw std::invalid_argument("Invalid tally score \"" + score_str + "\". See the docs "
|
||||
"for details: https://docs.openmc.org/en/stable/usersguide/tallies.html#scores");
|
||||
}
|
||||
if (MT < 1)
|
||||
throw std::invalid_argument("Invalid tally score \"" + score_str + "\"");
|
||||
throw std::invalid_argument("Invalid tally score \"" + score_str + "\". See the docs "
|
||||
"for details: https://docs.openmc.org/en/stable/usersguide/tallies.html#scores");
|
||||
return MT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue