Skip to content

Commit

Permalink
Make sure direction is set when checking source spatial constraints (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored and church89 committed Jul 18, 2024
1 parent c87dd33 commit 7f467f3
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 7f467f3

Please sign in to comment.