mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Made test_filter_distribcell use vector tally data access
This commit is contained in:
parent
5e104f6e7b
commit
faa3172de6
1 changed files with 2 additions and 5 deletions
|
|
@ -65,10 +65,7 @@ sp3_t2_d1 = sp3_t2.get_values(scores=['total'], filters=['distribcell'],
|
|||
|
||||
sp3_t3_c60 = sp3_t3.get_values(scores=['total'], filters=['cell'],
|
||||
filter_bins=[(26,)], value='mean')
|
||||
sp3_t4_d = 0
|
||||
for i in range(241):
|
||||
sp3_t4_d += sp3_t4.get_values(scores=['total'], filters=['distribcell'],
|
||||
filter_bins=[(i,)], value='mean')
|
||||
sp3_t4_d = sum(sp3_t4.get_values(scores=['total'], value='mean'))
|
||||
|
||||
sp3_t5_c27 = sp3_t5.get_values(scores=['total'], filters=['cell'],
|
||||
filter_bins=[(19,)], value='mean')
|
||||
|
|
@ -90,7 +87,7 @@ outstr += "{0:12.6E}\n".format(sp1_t1_d2[()])
|
|||
outstr += "{0:12.6E}\n".format(sp3_t1_c1[()])
|
||||
outstr += "{0:12.6E}\n".format(sp3_t2_d1[()])
|
||||
outstr += "{0:12.6E}\n".format(sp3_t3_c60[()])
|
||||
outstr += "{0:12.6E}\n".format(sp3_t4_d[()])
|
||||
outstr += "{0:12.6E}\n".format(sp3_t4_d)
|
||||
outstr += "{0:12.6E}\n".format(sp3_t5_c27[()])
|
||||
outstr += "{0:12.6E}\n".format(sp3_t6_d)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue