Skip to content

Commit

Permalink
Make sure direction is set when checking source spatial constraints (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored Jun 3, 2024
1 parent 3420199 commit 2a53aba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ bool Source::satisfies_spatial_constraints(Position r) const
{
GeometryState geom_state;
geom_state.r() = r;
geom_state.u() = {0.0, 0.0, 1.0};

// Reject particle if it's not in the geometry at all
bool found = exhaustive_find_cell(geom_state);
Expand Down

0 comments on commit 2a53aba

Please sign in to comment.