mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Adding ability to set additional ww attrs from openmc.lib (#2609)
Co-authored-by: Jonathan Shimwell <mail@jshimwell.com>
This commit is contained in:
parent
7397dae12d
commit
afa6ceb7d7
6 changed files with 199 additions and 2 deletions
|
|
@ -191,6 +191,16 @@ int openmc_weight_windows_get_bounds(int32_t index, const double** lower_bounds,
|
|||
const double** upper_bounds, size_t* size);
|
||||
int openmc_weight_windows_set_bounds(int32_t index, const double* lower_bounds,
|
||||
const double* upper_bounds, size_t size);
|
||||
int openmc_weight_windows_get_survival_ratio(int32_t index, double* ratio);
|
||||
int openmc_weight_windows_set_survival_ratio(int32_t index, double ratio);
|
||||
int openmc_weight_windows_get_max_lower_bound_ratio(
|
||||
int32_t index, double* lb_ratio);
|
||||
int openmc_weight_windows_set_max_lower_bound_ratio(
|
||||
int32_t index, double lb_ratio);
|
||||
int openmc_weight_windows_get_weight_cutoff(int32_t index, double* cutoff);
|
||||
int openmc_weight_windows_set_weight_cutoff(int32_t index, double cutoff);
|
||||
int openmc_weight_windows_get_max_split(int32_t index, int* max_split);
|
||||
int openmc_weight_windows_set_max_split(int32_t index, int max_split);
|
||||
size_t openmc_weight_windows_size();
|
||||
int openmc_weight_windows_export(const char* filename = nullptr);
|
||||
int openmc_weight_windows_import(const char* filename = nullptr);
|
||||
|
|
|
|||
|
|
@ -155,6 +155,22 @@ public:
|
|||
|
||||
void set_particle_type(ParticleType p_type);
|
||||
|
||||
double survival_ratio() const { return survival_ratio_; }
|
||||
|
||||
double& survival_ratio() { return survival_ratio_; }
|
||||
|
||||
double max_lower_bound_ratio() const { return max_lb_ratio_; }
|
||||
|
||||
double& max_lower_bound_ratio() { return max_lb_ratio_; }
|
||||
|
||||
int max_split() const { return max_split_; }
|
||||
|
||||
int& max_split() { return max_split_; }
|
||||
|
||||
double weight_cutoff() const { return weight_cutoff_; }
|
||||
|
||||
double& weight_cutoff() { return weight_cutoff_; }
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Accessors
|
||||
int32_t id() const { return id_; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue