Remove redundant code for setting source in test file as suggested in code review

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
helen-brooks 2021-06-18 09:17:48 +01:00 committed by helen-brooks
parent d4bf1c9b6f
commit fa588b373f
2 changed files with 3 additions and 13 deletions

View file

@ -48,14 +48,8 @@
<particles>100</particles>
<batches>10</batches>
<source strength="1.0">
<space origin="0.0 0.0 0.0" type="spherical">
<r parameters="0.0 0.0" type="uniform" />
<theta type="discrete">
<parameters>0.0 1.0</parameters>
</theta>
<phi type="discrete">
<parameters>0.0 1.0</parameters>
</phi>
<space type="point">
<parameters>0.0 0.0 0.0</parameters>
</space>
<angle reference_uvw="-1.0 0.0 0.0" type="monodirectional" />
<energy type="discrete">

View file

@ -255,11 +255,7 @@ def test_external_mesh(cpp_driver):
settings.batches = 10
# Source setup
r = openmc.stats.Uniform(a=0.0, b=0.0)
theta = openmc.stats.Discrete(x=[0.0], p=[1.0])
phi = openmc.stats.Discrete(x=[0.0], p=[1.0])
space = openmc.stats.SphericalIndependent(r, theta, phi)
space = openmc.stats.Point()
angle = openmc.stats.Monodirectional((-1.0, 0.0, 0.0))
energy = openmc.stats.Discrete(x=[15.e+06], p=[1.0])
source = openmc.Source(space=space, energy=energy, angle=angle)