Skip to content

Commit e8faccd

Browse files
authored
Call simulation_finalize if needed when finalizing OpenMC (#2790)
1 parent 8b2698f commit e8faccd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/finalize.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ using namespace openmc;
6363

6464
int openmc_finalize()
6565
{
66+
if (simulation::initialized)
67+
openmc_simulation_finalize();
68+
6669
// Clear results
6770
openmc_reset();
6871

0 commit comments

Comments
 (0)