mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Initialize source when surface source file is provided
This commit is contained in:
parent
b5f6dacb7d
commit
03a4c1dc56
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue