Fixing bugs associated with enabling tabular representation of legendre data

This commit is contained in:
Adam Nelson 2016-02-10 20:39:03 -05:00
parent 65825b1b4f
commit 307617538c
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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