From 25cf7a3e9712f80b05e918311fbd5e65cfd6d627 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 29 Jun 2021 21:05:03 -0500 Subject: [PATCH] Ensuring that surface names are read from the HDF5 format. --- openmc/surface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openmc/surface.py b/openmc/surface.py index b2f3c6710c..ac0cb1b0b2 100644 --- a/openmc/surface.py +++ b/openmc/surface.py @@ -432,6 +432,7 @@ class Surface(IDManagerMixin, ABC): kwargs = {} kwargs['surface_id'] = int(elem.get('id')) kwargs['boundary_type'] = elem.get('boundary', 'transmission') + kwargs['name'] = elem.get('name') coeffs = [float(x) for x in elem.get('coeffs').split()] kwargs.update(dict(zip(cls._coeff_keys, coeffs)))