Add max_tracks setting (maximum number of tracks per process)

This commit is contained in:
Paul Romano 2022-05-20 07:25:10 -05:00
parent 4f1e8f46f5
commit e34bf445f0
9 changed files with 99 additions and 19 deletions

View file

@ -88,6 +88,7 @@ extern int max_order; //!< Maximum Legendre order for multigroup data
extern int n_log_bins; //!< number of bins for logarithmic energy grid
extern int n_batches; //!< number of (inactive+active) batches
extern int n_max_batches; //!< Maximum number of batches
extern int max_tracks; //!< Maximum number of particle tracks written to file
extern ResScatMethod res_scat_method; //!< resonance upscattering method
extern double res_scat_energy_min; //!< Min energy in [eV] for res. upscattering
extern double res_scat_energy_max; //!< Max energy in [eV] for res. upscattering

View file

@ -15,6 +15,12 @@ void open_track_file();
//! Close HDF5 resources for track file
void close_track_file();
//! Determine whether a given particle should collect/write track information
//
//! \param[in] p Current particle
//! \return Whether to collect/write track information
bool check_track_criteria(const Particle& p);
//! Create a new track state history for a primary/secondary particle
//
//! \param[in] p Current particle