Add wrapper class for custom sources

This commit is contained in:
Paul Romano 2020-10-22 15:50:30 -05:00
parent 713469bf59
commit 3f62fab565
4 changed files with 95 additions and 142 deletions

View file

@ -121,12 +121,6 @@ int openmc_simulation_init()
}
}
// If fixed source and using custom source library then need to load
if (settings::run_mode == RunMode::FIXED_SOURCE &&
!settings::path_source_library.empty()) {
load_custom_source_library();
}
// Display header
if (mpi::master) {
if (settings::run_mode == RunMode::FIXED_SOURCE) {
@ -173,12 +167,6 @@ int openmc_simulation_finalize()
t->active_ = false;
}
// If fixed source and using custom source library then need to close
if (settings::run_mode == RunMode::FIXED_SOURCE &&
!settings::path_source_library.empty()) {
close_custom_source_library();
}
// Stop timers and show timing statistics
simulation::time_finalize.stop();
simulation::time_total.stop();