From 8b06863b37ff3a258080a33058ceb9311f15dea3 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Tue, 12 Jul 2022 16:52:02 +0100 Subject: [PATCH] added dagmc bounding box test --- tests/regression_tests/dagmc/universes/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/regression_tests/dagmc/universes/test.py b/tests/regression_tests/dagmc/universes/test.py index 01963986c5..6726b4b448 100644 --- a/tests/regression_tests/dagmc/universes/test.py +++ b/tests/regression_tests/dagmc/universes/test.py @@ -46,6 +46,11 @@ class DAGMCUniverseTest(PyAPITestHarness): # create the DAGMC universe pincell_univ = openmc.DAGMCUniverse(filename='dagmc.h5m', auto_geom_ids=True) + # checks that the bounding box is calculated correctly + bounding_box = pincell_univ.bounding_box + assert bounding_box[0].tolist() == [-25., -25., -25.] + assert bounding_box[1].tolist() == [25., 25., 25.] + # create a 2 x 2 lattice using the DAGMC pincell pitch = np.asarray((24.0, 24.0)) lattice = openmc.RectLattice()