Initialize source when surface source file is provided

This commit is contained in:
YoungHui Park 2020-08-05 11:47:54 -05:00
parent b5f6dacb7d
commit 03a4c1dc56

View file

@ -114,7 +114,8 @@ int openmc_simulation_init()
write_message("Resuming simulation...", 6);
} else {
// Only initialize primary source bank for eigenvalue simulations
if (settings::run_mode == RunMode::EIGENVALUE) {
// or when a surface source file is provided.
if (settings::run_mode == RunMode::EIGENVALUE || settings::surf_src_read) {
initialize_source();
}
}