mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix failing tests
This commit is contained in:
parent
f23620896d
commit
aed797631b
2 changed files with 3 additions and 7 deletions
|
|
@ -1,7 +1,3 @@
|
|||
import random
|
||||
from math import sqrt
|
||||
|
||||
import numpy as np
|
||||
import openmc
|
||||
import openmc.model
|
||||
|
||||
|
|
@ -65,8 +61,8 @@ class TRISOTestHarness(PyAPITestHarness):
|
|||
box = openmc.Cell(region=box_region)
|
||||
|
||||
outer_radius = 422.5*1e-4
|
||||
centers = openmc.model.pack_spheres(radius=outer_radius,
|
||||
region=box_region, num_spheres=100)
|
||||
centers = openmc.model.pack_spheres(
|
||||
radius=outer_radius, region=box_region, num_spheres=100, seed=1)
|
||||
trisos = [openmc.model.TRISO(outer_radius, inner_univ, c)
|
||||
for c in centers]
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ def test_get_keff(res):
|
|||
def test_get_steps(unit):
|
||||
# Make a Results full of near-empty Result instances
|
||||
# Just fill out a time schedule
|
||||
results = openmc.deplete.Results()
|
||||
results = openmc.deplete.Results(filename=None)
|
||||
# Time in units of unit
|
||||
times = np.linspace(0, 100, num=5)
|
||||
if unit == "a":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue