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.
1 parent 58f2a21 commit 08e7043Copy full SHA for 08e7043
src/tallies/filter_sph_harm.cpp
@@ -25,6 +25,9 @@ void SphericalHarmonicsFilter::set_order(int order)
25
if (order < 0) {
26
throw std::invalid_argument {
27
"Spherical harmonics order must be non-negative."};
28
+ } else if (order > 10) {
29
+ throw std::invalid_argument {"Spherical harmonics orders greater than 10 "
30
+ "are currently not supported!"};
31
}
32
order_ = order;
33
n_bins_ = (order_ + 1) * (order_ + 1);
0 commit comments