Fixes reordering in random ray. Refs #2997 (#2998)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
April Novak 2024-05-14 01:47:11 -05:00 committed by GitHub
parent cfe210da22
commit a7d6939c11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -38,14 +38,14 @@ public:
// Public data members
vector<float> angular_flux_;
private:
//----------------------------------------------------------------------------
// Private data members
private:
vector<float> delta_psi_;
int negroups_;
FlatSourceDomain* domain_ {nullptr}; // pointer to domain that has flat source
// data needed for ray transport
vector<float> delta_psi_;
double distance_travelled_ {0};
int negroups_;
bool is_active_ {false};
bool is_alive_ {true};
}; // class RandomRay

View file

@ -70,9 +70,9 @@ double RandomRay::distance_active_;
unique_ptr<Source> RandomRay::ray_source_;
RandomRay::RandomRay()
: negroups_(data::mg.num_energy_groups_),
angular_flux_(data::mg.num_energy_groups_),
delta_psi_(data::mg.num_energy_groups_)
: angular_flux_(data::mg.num_energy_groups_),
delta_psi_(data::mg.num_energy_groups_),
negroups_(data::mg.num_energy_groups_)
{}
RandomRay::RandomRay(uint64_t ray_id, FlatSourceDomain* domain) : RandomRay()