From fbb15496db978693cb5df9e963d69853b6f1ee9f Mon Sep 17 00:00:00 2001 From: shimwell Date: Mon, 18 Jul 2022 21:33:37 +0100 Subject: [PATCH] boundary_type review suggestion from @pshriwise --- openmc/universe.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openmc/universe.py b/openmc/universe.py index 989b50c73..959717b6a 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -746,7 +746,13 @@ class DAGMCUniverse(UniverseBase): import math bounding_box_center = (bounding_box[0] + bounding_box[1])/2 radius = math.dist(bounding_box[0], bounding_box[1]) - bounding_surface = openmc.Sphere(x0=bounding_box_center[0], y0=bounding_box_center[1], z0=bounding_box_center[2], r=radius) + bounding_surface = openmc.Sphere( + x0=bounding_box_center[0], + y0=bounding_box_center[1], + z0=bounding_box_center[2], + boundary_type=boundary_type, + r=radius, + ) return -bounding_surface