-
Notifications
You must be signed in to change notification settings - Fork 566
Add random ray info to statepoint file #3499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,16 +235,21 @@ vector<double> rhalton(int dim, uint64_t* seed, int64_t skip = 0) | |
// Static Variable Declarations | ||
double RandomRay::distance_inactive_; | ||
double RandomRay::distance_active_; | ||
double RandomRay::avg_miss_rate; | ||
unique_ptr<Source> RandomRay::ray_source_; | ||
RandomRaySourceShape RandomRay::source_shape_ {RandomRaySourceShape::FLAT}; | ||
bool RandomRay::mesh_subdivision_enabled_ {false}; | ||
RandomRaySampleMethod RandomRay::sample_method_ {RandomRaySampleMethod::PRNG}; | ||
int64_t RandomRay::n_source_regions; | ||
int64_t RandomRay::n_external_source_regions; | ||
uint64_t RandomRay::total_geometric_intersections; | ||
int RandomRay::negroups_; | ||
|
||
RandomRay::RandomRay() | ||
: angular_flux_(data::mg.num_energy_groups_), | ||
delta_psi_(data::mg.num_energy_groups_), | ||
negroups_(data::mg.num_energy_groups_) | ||
delta_psi_(data::mg.num_energy_groups_) | ||
{ | ||
negroups_ = data::mg.num_energy_groups_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As |
||
if (source_shape_ == RandomRaySourceShape::LINEAR || | ||
source_shape_ == RandomRaySourceShape::LINEAR_XY) { | ||
delta_moments_.resize(negroups_); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_
at the end to follow the C++ class variable naming convention.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a "total_geometric_intersections" variable already in the
RandomRaySimulation
class. Perhaps we should just use that one instead (and make it static), rather than making a duplicate?