mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Write surface source only at the last batch, hard-code number of surfaces for surface_source.h5 sizing
This commit is contained in:
parent
109dfd20f5
commit
c362ba5ef4
3 changed files with 5 additions and 4 deletions
|
|
@ -380,7 +380,7 @@ void finalize_batch()
|
|||
}
|
||||
|
||||
// Write out surface source if requested.
|
||||
if (settings::surface_source) {
|
||||
if (settings::surface_source && simulation::current_batch == settings::n_batches) {
|
||||
auto filename = settings::path_output + "surface_source.h5";
|
||||
write_surf_src_point(filename.c_str()); //!!
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue