Skip to content

Commit

Permalink
Tolerance 100cm
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles authored Mar 8, 2025
1 parent 25b9a95 commit bdd53a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2450,12 +2450,12 @@ auto get_totmassradionuclide(const int z, const int a) -> double {
// packet pos below min
const double boundaryposmin = grid::get_cellcoordmin(cellindex, d) / globals::tmin * tstart;
delta = pktposgridcoord[d] - boundaryposmin;
isoutside_thisside = pktposgridcoord[d] < (boundaryposmin - 10.); // 10 cm accuracy tolerance
isoutside_thisside = pktposgridcoord[d] < (boundaryposmin - 100.); // 100 cm accuracy tolerance
} else {
// packet pos above max
const double boundaryposmax = cellcoordmax[d] / globals::tmin * tstart;
delta = pktposgridcoord[d] - boundaryposmax;
isoutside_thisside = pktposgridcoord[d] > (boundaryposmax + 10.);
isoutside_thisside = pktposgridcoord[d] > (boundaryposmax + 100.);
}

if (isoutside_thisside) {
Expand Down

0 comments on commit bdd53a7

Please sign in to comment.