From 1d0b20dd7cf46a3164ce2c6ba1923634c1afb8c3 Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Mon, 19 Dec 2016 15:42:35 -0800 Subject: [PATCH] fixed error in mgxs_library.py notation for xs shapes --- openmc/mgxs_library.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openmc/mgxs_library.py b/openmc/mgxs_library.py index 7f480d1472..61a102c147 100644 --- a/openmc/mgxs_library.py +++ b/openmc/mgxs_library.py @@ -296,13 +296,13 @@ class XSdata(object): self._xs_shapes["[G][G']"] = (self.energy_groups.num_groups, self.energy_groups.num_groups) self._xs_shapes["[DG]"] = (self.num_delayed_groups,) - self._xs_shapes["[DG][G]"] = (self.energy_groups.num_groups, - self.num_delayed_groups) - self._xs_shapes["[DG'][G']"] = (self.energy_groups.num_groups, - self.num_delayed_groups) - self._xs_shapes["[DG][G][G']"] = (self.energy_groups.num_groups, + self._xs_shapes["[DG][G]"] = (self.num_delayed_groups, + self.energy_groups.num_groups) + self._xs_shapes["[DG'][G']"] = (self.num_delayed_groups, + self.energy_groups.num_groups) + self._xs_shapes["[DG][G][G']"] = (self.num_delayed_groups, self.energy_groups.num_groups, - self.num_delayed_groups) + self.energy_groups.num_groups) self._xs_shapes["[G][G'][Order]"] \ = (self.energy_groups.num_groups, @@ -856,7 +856,7 @@ class XSdata(object): """ # Get the accepted shapes for this xs - shapes = [self.xs_shapes["[G][DG]"], self.xs_shapes["[DG][G][G']"]] + shapes = [self.xs_shapes["[DG][G]"], self.xs_shapes["[DG][G][G']"]] # Convert to a numpy array so we can easily get the shape for checking delayed_nu_fission = np.asarray(delayed_nu_fission)