diff --git a/openmc/mgxs_library.py b/openmc/mgxs_library.py index f3e7b92184..ea6407f968 100644 --- a/openmc/mgxs_library.py +++ b/openmc/mgxs_library.py @@ -289,7 +289,10 @@ class XSdata(object): check_value('num_points', num_points, Integral) check_greater_than('num_points', num_points, 0) else: - num_points = 33 + if enable == False: + num_points = 1 + else: + num_points = 33 self._tabular_legendre = {'enable': enable, 'num_points': num_points} @num_polar.setter diff --git a/src/mgxs_data.F90 b/src/mgxs_data.F90 index 94546c10dc..715b52b132 100644 --- a/src/mgxs_data.F90 +++ b/src/mgxs_data.F90 @@ -261,6 +261,7 @@ contains enable_leg_mu = .true. elseif (temp_str == 'false' .or. temp_str == '0') then enable_leg_mu = .false. + this % legendre_mu_points = 1 else call fatal_error("Unrecognized tabular_legendre/enable: " // temp_str) end if