From 307617538c887a3ed8db2fd0a19640b6383553b4 Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Wed, 10 Feb 2016 20:39:03 -0500 Subject: [PATCH] Fixing bugs associated with enabling tabular representation of legendre data --- openmc/mgxs_library.py | 5 ++++- src/mgxs_data.F90 | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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