mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
add a trigger to simulation control
This commit is contained in:
parent
5462216deb
commit
1519f4f3e6
1 changed files with 7 additions and 0 deletions
|
|
@ -407,6 +407,13 @@ void finalize_batch()
|
|||
auto filename = settings::path_output + "surface_source.h5";
|
||||
write_source_point(filename.c_str(), true);
|
||||
}
|
||||
|
||||
if(settings::surf_mcpl_write && simulation::current_batch == settings::n_batches){
|
||||
auto filename = settings::path_output + ".mcpl";
|
||||
write_mcplt_source_point(filename.c_str(), true);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void initialize_generation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue