From e4cecaf417d6b7999ac3bd655503d9d78ca65151 Mon Sep 17 00:00:00 2001 From: Erik B Knudsen Date: Mon, 10 Oct 2022 15:09:01 +0200 Subject: [PATCH] reenable destructor --- src/CAD_to_OpenMC/assemblymesher_gmsh.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CAD_to_OpenMC/assemblymesher_gmsh.py b/src/CAD_to_OpenMC/assemblymesher_gmsh.py index 0f71a98..0bfd3fd 100644 --- a/src/CAD_to_OpenMC/assemblymesher_gmsh.py +++ b/src/CAD_to_OpenMC/assemblymesher_gmsh.py @@ -20,8 +20,9 @@ def __init__(self, min_mesh_size, max_mesh_size, curve_samples, default, mesh_al self.refine=refine self._gmsh_init() self._cq_solids_to_gmsh() - #def __del__(self): - # gmsh.finalize() + + def __del__(self): + gmsh.finalize() def _gmsh_init(self): if not gmsh.isInitialized():