mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
add mcpl-output settings
This commit is contained in:
parent
2de20231ad
commit
7418cb99dd
2 changed files with 8 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ extern bool source_latest; //!< write latest source at each batch?
|
|||
extern bool source_separate; //!< write source to separate file?
|
||||
extern bool source_write; //!< write source in HDF5 files?
|
||||
extern bool surf_source_write; //!< write surface source file?
|
||||
extern bool surf_mcpl_write; //!< write surface mcpl file?
|
||||
extern bool surf_source_read; //!< read surface source file?
|
||||
extern bool survival_biasing; //!< use survival biasing?
|
||||
extern bool temperature_multipole; //!< use multipole data?
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ bool source_latest {false};
|
|||
bool source_separate {false};
|
||||
bool source_write {true};
|
||||
bool surf_source_write {false};
|
||||
bool surf_mcpl_write {false};
|
||||
bool surf_source_read {false};
|
||||
bool survival_biasing {false};
|
||||
bool temperature_multipole {false};
|
||||
|
|
@ -682,9 +683,14 @@ void read_settings_xml()
|
|||
max_surface_particles =
|
||||
std::stoll(get_node_value(node_ssw, "max_particles"));
|
||||
}
|
||||
#ifdef OPENMC_MCPL
|
||||
if(check_for_node(node_ssw, "mcpl")){
|
||||
surf_mcpl_write=true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// If source is not seperate and is to be written out in the statepoint file,
|
||||
// If source is not separate and is to be written out in the statepoint file,
|
||||
// make sure that the sourcepoint batch numbers are contained in the
|
||||
// statepoint list
|
||||
if (!source_separate) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue