Skip to content

Commit 08e7043

Browse files
authored
Throw an error if a spherical harmonics order larger than 10 is provided. (#3354)
1 parent 58f2a21 commit 08e7043

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tallies/filter_sph_harm.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ void SphericalHarmonicsFilter::set_order(int order)
2525
if (order < 0) {
2626
throw std::invalid_argument {
2727
"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!"};
2831
}
2932
order_ = order;
3033
n_bins_ = (order_ + 1) * (order_ + 1);

0 commit comments

Comments
 (0)