mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Update depletion tests for eigenvalue uncertainties
Update results list unit test to ensure that the correct uncertainties are pulled from the depletion_results file Update basic integrator unit test to test writing and retrieving eigenvalues and associated uncertainties
This commit is contained in:
parent
f52593ac4a
commit
c6e65061d1
2 changed files with 6 additions and 3 deletions
|
|
@ -64,8 +64,9 @@ def test_results_save(run_in_tmpdir):
|
|||
r1[:] = np.random.rand(2, 2, 2)
|
||||
|
||||
# Create global terms
|
||||
eigvl1 = np.random.rand(stages)
|
||||
eigvl2 = np.random.rand(stages)
|
||||
# Col 0: eig, Col 1: uncertainty
|
||||
eigvl1 = np.random.rand(stages, 2)
|
||||
eigvl2 = np.random.rand(stages, 2)
|
||||
|
||||
eigvl1 = comm.bcast(eigvl1, root=0)
|
||||
eigvl2 = comm.bcast(eigvl2, root=0)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ def test_get_eigenvalue(res):
|
|||
|
||||
t_ref = [0.0, 1296000.0, 2592000.0, 3888000.0]
|
||||
k_ref = [1.16984322, 1.19097427, 1.03012572, 1.20045627]
|
||||
u_ref = [0.0375587, 0.0347639, 0.07216021, 0.02839642]
|
||||
|
||||
np.testing.assert_allclose(t, t_ref)
|
||||
np.testing.assert_allclose(k, k_ref)
|
||||
np.testing.assert_allclose(k[:, 0], k_ref)
|
||||
np.testing.assert_allclose(k[:, 1], u_ref)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue