Skip to content

Commit

Permalink
Call simulation_finalize if needed when finalizing OpenMC (#2790)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Nov 28, 2023
1 parent 8b2698f commit e8faccd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/finalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ using namespace openmc;

int openmc_finalize()
{
if (simulation::initialized)
openmc_simulation_finalize();

// Clear results
openmc_reset();

Expand Down

0 comments on commit e8faccd

Please sign in to comment.