Call simulation_finalize if needed when finalizing OpenMC (#2790)

This commit is contained in:
Patrick Shriwise 2023-11-28 13:56:21 -06:00 committed by GitHub
parent 8b2698f5c0
commit e8faccdc93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,9 @@ using namespace openmc;
int openmc_finalize()
{
if (simulation::initialized)
openmc_simulation_finalize();
// Clear results
openmc_reset();