mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Throw an error if a spherical harmonics order larger than 10 is provided. (#3354)
This commit is contained in:
parent
58f2a21771
commit
08e7043f8d
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ void SphericalHarmonicsFilter::set_order(int order)
|
|||
if (order < 0) {
|
||||
throw std::invalid_argument {
|
||||
"Spherical harmonics order must be non-negative."};
|
||||
} else if (order > 10) {
|
||||
throw std::invalid_argument {"Spherical harmonics orders greater than 10 "
|
||||
"are currently not supported!"};
|
||||
}
|
||||
order_ = order;
|
||||
n_bins_ = (order_ + 1) * (order_ + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue