mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
mcpl-file output simimlar to regular source output file
This commit is contained in:
parent
94fb5f8fa6
commit
81fa3b45a3
3 changed files with 16 additions and 0 deletions
|
|
@ -399,6 +399,20 @@ void finalize_batch()
|
|||
auto filename = settings::path_output + "source.h5";
|
||||
write_source_point(filename.c_str());
|
||||
}
|
||||
|
||||
#ifdef OPENMC_MCPL
|
||||
if (contains(settings::sourcepoint_batch, simulation::current_batch) &&
|
||||
settings::source_mcpl_write && settings::source_separate) {
|
||||
write_mcpl_source_point(nullptr);
|
||||
}
|
||||
|
||||
// Write a continously-overwritten source point if requested.
|
||||
if (settings::source_latest && setting::source_mcpl_write) {
|
||||
auto filename = settings::path_output + "source.mcpl";
|
||||
write_mcpl_source_point(filename.c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
// Write out surface source if requested.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue