From 27cea6773ce458950a46f2b9f560318ddc0d87e3 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Thu, 19 Mar 2015 18:00:08 -0400 Subject: [PATCH] Updated OpenCG compatibility module to reflect change from width to pitch in RectLattice --- src/utils/openmc/opencg_compatible.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/openmc/opencg_compatible.py b/src/utils/openmc/opencg_compatible.py index 90af361488..909a6ab589 100644 --- a/src/utils/openmc/opencg_compatible.py +++ b/src/utils/openmc/opencg_compatible.py @@ -764,9 +764,9 @@ def get_openmc_lattice(opencg_lattice): ((np.array(width, dtype=np.float64) * \ np.array(dimension, dtype=np.float64))) / -2.0 - openmc_lattice = openmc.Lattice(lattice_id=lattice_id) + openmc_lattice = openmc.RectLattice(lattice_id=lattice_id) openmc_lattice.set_dimension(dimension) - openmc_lattice.set_width(width) + openmc_lattice.set_pitch(width) openmc_lattice.set_universes(universe_array) openmc_lattice.set_lower_left(lower_left)