mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixing bugs associated with enabling tabular representation of legendre data
This commit is contained in:
parent
65825b1b4f
commit
307617538c
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue