Skip to content

Commit

Permalink
Fixes reordering in random ray. Refs openmc-dev#2997 (openmc-dev#2998)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
  • Loading branch information
2 people authored and church89 committed Jul 18, 2024
1 parent bdc4a46 commit 28447fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/openmc/random_ray/random_ray.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class RandomRay : public Particle {
// 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
Expand Down
6 changes: 3 additions & 3 deletions src/random_ray/random_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 28447fd

Please sign in to comment.