mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Quick fix related to the shape of decay-rate.
This commit is contained in:
parent
5c4d954930
commit
e4b14d2ac6
3 changed files with 5 additions and 14 deletions
|
|
@ -2044,7 +2044,6 @@ class DecayRate(MDGXS):
|
|||
num_delayed_groups)
|
||||
else:
|
||||
new_shape = (num_subdomains, num_delayed_groups)
|
||||
new_shape += xs.shape[1:]
|
||||
xs = np.reshape(xs, new_shape)
|
||||
|
||||
if squeeze:
|
||||
|
|
|
|||
|
|
@ -776,7 +776,7 @@ class XSdata:
|
|||
"""
|
||||
|
||||
# Get the accepted shapes for this xs
|
||||
shapes = [self.xs_shapes["[DG]"], self.xs_shapes["[DG][G]"]]
|
||||
shapes = [self.xs_shapes["[DG]"]]
|
||||
|
||||
# Convert to a numpy array so we can easily get the shape for checking
|
||||
decay_rate = np.asarray(decay_rate)
|
||||
|
|
|
|||
|
|
@ -193,18 +193,10 @@ domain=1 type=beta
|
|||
[1.21876271e-04 8.77101834e-05]
|
||||
[4.95946084e-05 3.67414816e-05]]
|
||||
domain=1 type=decay-rate
|
||||
[[1.33568413e-02]
|
||||
[3.25887984e-02]
|
||||
[1.21105565e-01]
|
||||
[3.06139633e-01]
|
||||
[8.62763808e-01]
|
||||
[2.89789222e+00]]
|
||||
[[9.57055016e-04]
|
||||
[2.28222032e-03]
|
||||
[8.35436401e-03]
|
||||
[2.06734948e-02]
|
||||
[5.63019289e-02]
|
||||
[1.89486538e-01]]
|
||||
[1.33568413e-02 3.25887984e-02 1.21105565e-01 3.06139633e-01
|
||||
8.62763808e-01 2.89789222e+00]
|
||||
[9.57055016e-04 2.28222032e-03 8.35436401e-03 2.06734948e-02
|
||||
5.63019289e-02 1.89486538e-01]
|
||||
domain=1 type=delayed-nu-fission matrix
|
||||
[[[0.00000000e+00 0.00000000e+00]
|
||||
[0.00000000e+00 0.00000000e+00]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue